Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Ticket #763 (closed defect: wontfix)

Opened 10 months ago

Last modified 3 months ago

Simplified unix epoch time

Reported by: darrylb Assigned to: schveiguy
Priority: trivial Milestone: 0.99.5
Component: Core Functionality Version: 0.99.3 Triller
Keywords: Cc:

Description

I don't know quite where it would fit, somewhere in one of the time-related classes (or the new ones that schieve proposed, maybe?), but it would be nice to have a simple way to get a unix-style epoch, that was 'tango' (instead of using stdc time(null)).

Change History

11/21/07 00:18:48 changed by kris

  • owner changed from sean to kris.

Yes, this is on the way :)

02/10/08 22:33:28 changed by kris

  • owner changed from kris to schveiguy.

any ideas for this, Steve?

02/10/08 22:33:36 changed by kris

  • milestone set to 0.99.6.

02/11/08 01:21:28 changed by schveiguy

  • status changed from new to closed.
  • resolution set to wontfix.

After some thought, there doesn't seem to be a real compelling reason to have a separate tango-only function that does the equivalent of time(null). I think keeping the API clean and having only one time base overrides having the convenience and support of Unix time also. We probably would then have to add Windows time.

I think the current method of either using time(null) or calculating by using the epoch constants is sufficient for most people's needs.

That being said, I did add to the documentation methods on how to calculate unix time from tango time, which should be beneficial to users who must work with unix time from other libraries.

02/11/08 01:22:30 changed by schveiguy

(In [3167]) Added more documentation to help explain how Tango time relates to Unix time (references #763)

02/23/08 06:03:30 changed by larsivi

  • milestone changed from 0.99.6 to 0.99.4.

02/23/08 06:03:43 changed by larsivi

  • milestone changed from 0.99.4 to 0.99.5.