d_time and writefln
Stewart Gordon
smjg_1998 at yahoo.com
Wed May 10 04:07:19 PDT 2006
Regan Heath wrote:
<snip>
> It should remain possible to print the numeric representation. For use
> in files/records/etc on disk or otherwise. I use the numeric time_t
> value from time() in C/C++ all the time.
There are many different formats for converting dates/times into
numbers. Is the format of time_t standardised?
> It's far easier to read/write a
> number than parse a string which could be in many different formats.
And somewhere between the two is parsing a string that can be in only
one format. Depending on whether you want the files your program works
with to be human-readable, you could use either a simple numeric
representation or a uniform textual notation (ideally the ISO notation).
Stewart.
--
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/M d- s:-@ C++@ a->--- UB@ P+ L E@ W++@ N+++ o K-@ w++@ O? M V? PS-
PE- Y? PGP- t- 5? X? R b DI? D G e++++ h-- r-- !y
------END GEEK CODE BLOCK------
My e-mail is valid but not my primary mailbox. Please keep replies on
the 'group where everyone may benefit.
More information about the Digitalmars-d-bugs
mailing list