[Issue 3741] std.date YearFromTime broken or very slow
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue May 24 21:32:30 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=3741
Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |andrej.mitrovich at gmail.com
Resolution| |FIXED
--- Comment #1 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2011-05-24 21:28:15 PDT ---
You can now use std.datetime.SysTime.year, as recommended in the "Migrating
from std.date to std.datetime" article that will be up on DPL.org soon.
import std.datetime;
auto year = (cast(DateTime)Clock.currTime()).year;
It takes 128 microseconds on my machine. Hope that's fast enough. Otherwise
file a bug report for std.datetime.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list