Tags: 0x8c905cba7f84af4, datetime, ddmmyyyy, example, hhmmss, iwant, microseconds, programming, python, time, view, withdatetime

datetime in microseconds

On Programmer » Python

18,142 words with 5 Comments; publish: Fri, 04 Jan 2008 18:54:00 GMT; (20078.13, « »)

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?

All Comments

Leave a comment...

  • 5 Comments
    • On Aug 20, 6:52 am, mroelo....python.questionfor.info.gmail.com wrote:
      Quote:
      === Original Words ===

      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

      #1; Fri, 04 Jan 2008 18:56:00 GMT
    • On Aug 20, 9:52 pm, mroelo....python.questionfor.info.gmail.com wrote:
      Quote:
      === Original Words ===

      >>>

Hmmm, one of us seems to be missing something ...

#2; Fri, 04 Jan 2008 18:57:00 GMT