Re: How can I cause the datetime to be the name of the output file.....
- From: "Rod Pemberton" <dont_have@xxxxxxxxxxxxx>
- Date: Sun, 05 Feb 2006 06:25:35 GMT
"Merlin" <mrb7494@xxxxxxxxx> wrote in message
news:1139110037.599303.31330@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hello everyone,
Merlin? Interesting nick...
Would time.h be the right library to use? If so, does anyone have any
suggestions as to how a solution might be implemented? Any thoughts
would be greatly appreciated.
Yes, it can be.
Yes, I do.
The first thing to consider, before which functions to use, is the time
format and time zone. It would be best if you used military 24-hour time,
so that say a 3pm and 3am file don't have a filename collision. Also, since
Daylight Saving Time shifts the hour by one, it would probably be best to
use a timezone independent time reference such as UTC, GMT, or Zulu time.
If your time.h has strftime(), you could use it with gmtime(). If not, you
can construct a "strftime()" using gmtime() and sprintf().
Rod Pemberton
.
- Follow-Ups:
- Re: How can I cause the datetime to be the name of the output file.....
- From: Emmanuel Delahaye
- Re: How can I cause the datetime to be the name of the output file.....
- References:
- Prev by Date: Re: REQUEST TO SOLVE MY PROBLEM IN VC++
- Next by Date: Re: How can I cause the datetime to be the name of the output file.....
- Previous by thread: How can I cause the datetime to be the name of the output file.....
- Next by thread: Re: How can I cause the datetime to be the name of the output file.....
- Index(es):
Relevant Pages
|