mfc >> System Time Range on WIndows

by Ritu » Thu, 03 Feb 2005 14:31:10 GMT

Hi All,



Can any body please tell me what is the system time range on windows system.



what i could get it start is as per UTC since midnight (00:00:00), January
1, 1970.



Please correct if i am wrong?

rgds,

Ritu





mfc >> System Time Range on WIndows

by David Lowndes » Thu, 03 Feb 2005 16:03:44 GMT


>Can any body please tell me what is the system time range on windows system.

There are several time formats - which one are you referring to?

The main one is FILETIME - which is an unsigned 64-bit value that
represents the number of 100-nanosecond units since the 1'st January
1601.

The other commonly used format is SYSTEMTIME, which is a time
structure limited strictly only by the range of the 16-bit year field,
but is often limited by underlying uses of FILETIME.

Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq



Similar Threads

1. System Boot Time Windows 98/ME

2. Update PDA system time using Desktop PC time through c# applic

3. Update PDA system time using Desktop PC time through c# applicatio - Pocketpc Developer

4. Problem with Local time to System time conversion

Hi,
Any help would be much appreciated, and here's my problem:

I've used the function SystemTimeToTzSpecificLocalTime() to convert a UTC
based time to a local time and everything works fine. However,when I try to
do the reverse, that is, from a local time back to a UTC time. The function
TzSpecificLocalTimeToSystemTime();
is not supported under windows 2000 (only supported on XP/server2003)

So I tried the function FileTimeToLocalFileTime() as a work-around but my
time is always off by one hour because of daylight saving.

Are there any easier alternatives besides making my own timezone conversion
routines? Or does it mean that I'll have to implement my own version of
TzSpecificLocalTimeToSytemTime() ?

Thanks in advance!


5. Display System Time running real time

6. Ranges of time logic?

7. Update the range of CProgressCtrl at run time.... - VC MFC

8. Compile-time range check?