Re: how to get time ticks of certain time
From: Tim Robinson (tim.gaat.freeserve.co.uk_at_nowhere.com)
Date: 01/16/05
- Next message: Tim Robinson: "Re: vc6++ future"
- Previous message: Jerry Coffin: "Re: [newbie] Best way to search for binary data"
- In reply to: Jacky Luk: "how to get time ticks of certain time"
- Next in thread: Tim Roberts: "Re: how to get time ticks of certain time"
- Reply: Tim Roberts: "Re: how to get time ticks of certain time"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 16 Jan 2005 21:20:04 +0000
Jacky Luk wrote:
> I need to convert a date for example 22 Dec 2004 to ticks since 1970, what
> function can do this?
tm time1 = { 0 };
time1.tm_mday = 22;
time1.tm_mon = 11;
time1.tm_year = 2004;
time_t time2 = mktime(&time1);
-- Tim Robinson (MVP, Windows SDK) http://mobius.sourceforge.net/
- Next message: Tim Robinson: "Re: vc6++ future"
- Previous message: Jerry Coffin: "Re: [newbie] Best way to search for binary data"
- In reply to: Jacky Luk: "how to get time ticks of certain time"
- Next in thread: Tim Roberts: "Re: how to get time ticks of certain time"
- Reply: Tim Roberts: "Re: how to get time ticks of certain time"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|