By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,303 Members | 1,517 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,303 IT Pros & Developers. It's quick & easy.

Getting system time and Date?

P: n/a
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.

Jul 23 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
RAYYILDIZ wrote:
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
Jul 23 '05 #2

P: n/a
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

Jul 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.