datetime in microseconds

kyosohma at gmail.com kyosohma at gmail.com
Mon Aug 20 08:57:48 EDT 2007


On Aug 20, 6:52 am, mroelo... at gmail.com wrote:
> Hi I have a time in microseconds, for example 0x8C905CBA7F84AF4. I
> want this to a normal view in hh:mm:ss DD:MM:YYYY. I tried with
> datetime, but it only takes a max of 1000000 microseconds is there
> another solution?

Just truncate the value so that it's less than 1000000. A slight
difference of a couple seconds shouldn't matter for the output format
you're talking about.

Mike




More information about the Python-list mailing list