Hello, nik.
On Jan 28, 2008, at 21:03, nik wrote:
> Hi,
>
> How does one express the time in ISO format with the timezone
> designator?
>
> what I want is -MM-DDThh:mm:ss.sTZD
>
>> From the documentation I see:
from datetime import tzinfo, timedelta, datetime
class TZ(tzinfo):
> ...
tzinfo object attached), you can do it
simply by feeding .now the tzinfo object you want attached, as below:
>>> print datetime.now(TZ()).isoformat('T')
2008-01-29T23:43:16.809049-05:00
See PSL, Sect. 5.1.4
Dates and Times are a bit ugly in Python. Don't be discoura
This is a query for information as to how to proceed. I am not a
professional programmer, but I use Python a great deal to help me in
my main job, which involves designing schedules for a global airline.
As such, I use datetime (and dateutil) extensively, and after much
use, I have come t
On Mar 19, 2008, at 16:30, Christian Heimes wrote:
> Nicholas F. Fabry schrieb:
>> This is a query for information as to how to proceed. I am not a
>> professional programmer, but I use Python a great deal to help me
>> in my main job, which involves designing s
On Mar 19, 2008, at 18:32, Steven D'Aprano wrote:
On Wed, 19 Mar 2008 17:40:39 -0400, Nicholas F. Fabry wrote:
To summarize my proposal VERY briefly:
- Make aware datetime objects display in local time, but calculate/
compare in UTC.
Your proposal is ambi
On Mar 21, 2008, at 13:36, Christian Heimes wrote:
> Colin J. Williams schrieb:
>> You might consider adding the Julian date
>> (http://en.wikipedia.org/wiki/Julian_date).
>>
>> I had a crack at this a while ago but didn't seem to get quire the
>> right
>> result, using the ACM algorithm. I se