how to parse a string into a phobos datatype with additional logic
Puming via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Apr 7 01:06:03 PDT 2016
On Thursday, 7 April 2016 at 07:45:06 UTC, yawniek wrote:
> what is the way one is supposed to parse e.g. a
> double of unixtime (as delived by nginx logs) into a SysTime?
>
> currently i'm creating a wrapper struct around SysTime with
> alias this as:
>
> https://gist.github.com/yannick/6caf5a5184beea0c24f35d9d4a4c7783
>
> really ugly imho.
>
> is there a better way to do this?
you mean
http://dlang.org/phobos/std_datetime.html#.SysTime.fromUnixTime ?
More information about the Digitalmars-d-learn
mailing list