how to convert date to unix timestamp

Discussion in 'C++' started by Fibre Optic, Feb 23, 2007.

  1. Fibre Optic

    Fibre Optic Guest

    Hello,

    I am looking for way to convert date i.e. "Fri Feb 23 06:13:55 EST 2007"
    to unix time stamp? Does any one know a library which could be help full?

    Regards,
    Fibre Optic
    Fibre Optic, Feb 23, 2007
    #1
    1. Advertising

  2. On Feb 23, 12:24 pm, Fibre Optic <> wrote:
    > Hello,
    >
    > I am looking for way to convert date i.e. "Fri Feb 23 06:13:55 EST 2007"
    > to unix time stamp? Does any one know a library which could be help full?


    Take a look at mktime() it might be what you want.

    http://www.cplusplus.com/reference/clibrary/ctime/tm.html

    --
    Erik Wikström
    =?iso-8859-1?q?Erik_Wikstr=F6m?=, Feb 23, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Phillip B Oldham

    Convert date/time to unix timestamp?

    Phillip B Oldham, Feb 10, 2009, in forum: Python
    Replies:
    2
    Views:
    4,447
    M.-A. Lemburg
    Feb 10, 2009
  2. Replies:
    1
    Views:
    937
    Chris Rebert
    Jul 22, 2010
  3. Andyza
    Replies:
    6
    Views:
    1,331
    Evertjan.
    Mar 5, 2009
  4. Dennis Oelkers
    Replies:
    2
    Views:
    205
    Dennis Oelkers
    Nov 19, 2003
  5. Replies:
    6
    Views:
    365
    Dr J R Stockton
    Mar 6, 2007
Loading...

Share This Page