Getting system time and Date?

R

RAYYILDIZ

Hi;
I have some problem. In win32 platform, how I can get system time in
location format. Location format is date and time where you are in. In
some area's date format is mm.dd.yyyy, dd.mm.yyyy, yyyy.dd.mm ...etc.
How I can learn what is the location.

Thanks.
 
V

Victor Bazarov

RAYYILDIZ said:
I have some problem. In win32 platform, how I can get system time in
location format. Location format is date and time where you are in. In
some area's date format is mm.dd.yyyy, dd.mm.yyyy, yyyy.dd.mm ...etc.
How I can learn what is the location.

You need to ask about it in a Win32 programming newsgroup if you want to
know how to "learn what is the location". However, C++ standard library
offers several calendar functions which should give you local time without
having to specify the location. RTFM about 'time' and 'localtime'
functions declared in <ctime> or <time.h> headers.

V
 
V

velthuijsen

Wrong newsgroup, try asking in comp.os.ms-windows.programmer.win32 (or
one of the other comp.os.ms-windows groups).

hint:
try looking for mktime in the msdn to get started
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top