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

File: Span.php

Source Location: /Date-1.4.6/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

Includes:

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

DATE_SPAN_INPUT_FORMAT_NNSV [line 65]

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:05:34 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.