Date
[ class tree: Date ] [ index: Date ] [ all elements ]

File: Span.php

Source Location: /Date-1.4.4/Date/Span.php

Classes:

Date_Span
Generic time span handling class for PEAR

Page Details:

Generic time span handling class for PEAR

PHP versions 4 and 5

LICENSE: This source file is subject to version 2.02 of the PHP license that is available through the world-wide-web at the following URI: http://www.php.net/license/2_02.txt. If you did not receive a copy of the PHP License and are unable to obtain it through the web, please send a note to license@php.net so we can mail you a copy immediately.

Includes:

require_once(Date.php) [line 29]
Get the Date class
require_once('Date/Calc.php') [line 34]
Get the Date_Calc class

DATE_SPAN_INPUT_FORMAT_NNSV [line 56]

DATE_SPAN_INPUT_FORMAT_NNSV = 1
Non Numeric Separated Values (NNSV) Input Format.

Input format guessed from something like this: days<sep>hours<sep>minutes<sep>seconds Where <sep> is any quantity of non numeric chars. If no values are given, time span is set to zero, if one value is given, it's used for hours, if two values are given it's used for hours and minutes and if three values are given, it's used for hours, minutes and seconds.
Examples:
'' -> 0, 0, 0, 0 (days, hours, minutes, seconds)
'12' -> 0, 12, 0, 0 '12.30' -> 0, 12, 30, 0
'12:30:18' -> 0, 12, 30, 18
'3-12-30-18' -> 3, 12, 30, 18
'3 days, 12-30-18' -> 3, 12, 30, 18
'12:30 with 18 secs' -> 0, 12, 30, 18


[ Top ]



Documentation generated on Mon, 11 Mar 2019 14:13:48 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.