Add human readable date, keep machine readable
This commit is contained in:
parent
9f879be71b
commit
76b3ca0d33
2 changed files with 3 additions and 3 deletions
|
@ -6,7 +6,7 @@ import std.datetime;
|
|||
import dyaml;
|
||||
|
||||
string toHumanString(DateTime value) {
|
||||
return to!string(value.year) ~ "-" ~ to!string(ubyte(value.month)) ~ "-" ~ to!string(value.day);
|
||||
return to!string(value.day) ~ "-" ~ to!string(ubyte(value.month)) ~ "-" ~ to!string(value.year);
|
||||
}
|
||||
|
||||
T getOr(T)(Node node, string key, T or) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue