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

File: Span.php

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

Classes:

Date_Span
Generic time span handling class for PEAR.

Page Details:

Includes:

require_once(Date.php) [line 22]
require_once('Date/Calc.php') [line 23]

DATE_SPAN_INPUT_FORMAT_NNSV [line 45]

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 Sat, 1 May 2004 03:34:30 +0200 by phpDocumentor 1.2.3. PEAR Logo Copyright © PHP Group 2004.