4 ms·
There's at least one other language (PHP, [1]) that accepts these natural language versions of times. It's not quite the same syntax, but I don't think it's ne
by tobz 12y ago
There's at least one other language (PHP, [1]) that accepts these natural language versions of times. It's not quite the same syntax, but I don't think it's necessarily uncommon for some libraries to support these sorts of queries, for lack of a better word. On the flipside, there's definitely a lot of libraries that support displaying times in this way (like moment.js, [2]).
[1] http://php.net/manual/en/function.strtotime.php http://php.net/manual/en/function.strtotime.php
[2] http://momentjs.com/ http://momentjs.com/