[Bug 704445] Review Request: python-timelib - Parse english textual date descriptions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.


https://bugzilla.redhat.com/show_bug.cgi?id=704445

--- Comment #1 from PRABIN KUMAR DATTA <linux.n.pkd@xxxxxxxxx> 2011-05-13 03:48:14 EDT ---
Koji Build:
https://koji.fedoraproject.org/koji/taskinfo?taskID=3069166

Runtime test:
[prabindatta@localhost ~]$ python
Python 2.7 (r27:82500, Sep 16 2010, 18:03:06) 
[GCC 4.5.1 20100907 (Red Hat 4.5.1-3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import timelib
>>> timelib.strtodatetime('today')
datetime.datetime(2011, 5, 13, 0, 0)
>>> timelib.strtodatetime('next friday')
datetime.datetime(2011, 5, 20, 0, 0)
>>> timelib.strtodatetime('next monday')
datetime.datetime(2011, 5, 16, 0, 0)
>>> timelib.strtodatetime('29 feb 2008 -108 years')
datetime.datetime(1900, 3, 1, 0, 0)

>>> import time, timelib
>>> time.ctime(timelib.strtotime("now"))
'Fri May 13 12:09:59 2011'
>>> time.ctime(timelib.strtotime("4 hours ago"))
'Fri May 13 08:10:08 2011'
>>> time.ctime(timelib.strtotime("20080229 - 1 year"))
'Thu Mar  1 05:30:00 2007'
>>> 


** This package is one the dependency package of "python-mwlib-0.12.14"

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
package-review mailing list
package-review@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/package-review


[Index of Archives]     [Fedora Legacy]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]