The return from parse() is a tuple that is the value parsed (or the
source time if not parsed) and a flag value.
0 = not parsed at all
1 = parsed as a date
2 = parsed as a time
3 = parsed as a datetime
parse() = (parsedvalue, flag)
hope this helps!
--
---
Bear
be...@seesmic.com (work)
be...@code-bear.com (jabber & email)
http://code-bear.com/bearlog (weblog)
PGP Fingerprint = 9996 719F 973D B11B E111 D770 9331 E822 40B3 CD29
The first value of the two value tuple we return is the datetime item
that the pdt library was able to parse. The second value is a flag to
let you know what kind of value is found in the first item.
--
---
Bear
be...@seesmic.com (work)
be...@code-bear.com (jabber & email)
http://code-bear.com/bearlog (weblog)
PGP Fingerprint = 9996 719F 973D B11B E111 D770 9331 E822 40B3 CD29
lib/module-time.html:
0 tm_year (for example, 1993)
1 tm_mon range [1,12]
2 tm_mday range [1,31]
3 tm_hour range [0,23]
4 tm_min range [0,59]
5 tm_sec range [0,61]; see (1) in strftime() description
6 tm_wday range [0,6], Monday is 0
7 tm_yday range [1,366]
8 tm_isdst 0, 1 or -1; see below
--