×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Oct 2008
    Posts
    5

    Lightbulb Unix format of time

    Hi

    I dont know how should I convert date format (like 2008-11-1 12:35:02) to unix format (I need it in calendar db)

    is any converting function between Human format <==> Unix format ?

    thank you

  2. #2
    Regular Contributor
    Join Date
    Dec 2007
    Location
    Tempe, AZ
    Posts
    411

    Re: Unix format of time

    A simple search would have done the job,
    http://www.epochconverter.com/
    IDEAS is all they need but still they think only Genius can give them that.

  3. #3
    Registered User
    Join Date
    Oct 2008
    Posts
    5

    thanks

    thank you, but

    import time
    int(time.mktime(time.strptime('2000-01-01 12:34:00', '%Y-%m-%d %H:%M:%S')))
    Says: File "<console>", line 1, in ?
    AttributeError: 'module' object has no attribute 'strptime'

    is the problem with my Python installation or is it general problem?
    Last edited by mozillaman; 2008-11-01 at 22:24.

  4. #4
    Nokia Developer Champion
    Join Date
    Sep 2007
    Location
    Bhavnagar
    Posts
    928

    Re: Unix format of time

    Hi,
    I think time module not have the function strptime but its a strftime.
    Thts why it gives you an error.
    Regards.
    Jajal Mehul

Similar Threads

  1. Problem in Time
    By aamitgupta in forum Symbian
    Replies: 7
    Last Post: 2007-12-21, 16:18
  2. Recording audio in AMR format, SDK 3rd
    By handle_cn in forum Symbian
    Replies: 12
    Last Post: 2007-11-03, 08:16
  3. Replies: 6
    Last Post: 2007-09-28, 05:36
  4. Bizarre calendar/time zone change handling in Nokia 9500
    By noetus in forum General Development Questions
    Replies: 0
    Last Post: 2005-09-19, 19:27
  5. ????????Convert Date format
    By mehulgarnara in forum Mobile Java Tools & SDKs
    Replies: 0
    Last Post: 2005-04-15, 07:34

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×