Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
14
Task/Date-format/Neko/date-format.neko
Normal file
14
Task/Date-format/Neko/date-format.neko
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/**
|
||||
<doc>
|
||||
<h2>Date format</h2>
|
||||
<p>Neko uses Int32 to store system date/time values.
|
||||
And lib C strftime style formatting for converting to string form</p>
|
||||
</doc>
|
||||
*/
|
||||
|
||||
var date_now = $loader.loadprim("std@date_now", 0)
|
||||
var date_format = $loader.loadprim("std@date_format", 2)
|
||||
|
||||
var now = date_now()
|
||||
$print(date_format(now, "%F"), "\n")
|
||||
$print(date_format(now, "%A, %B %d, %Y"), "\n")
|
||||
Loading…
Add table
Add a link
Reference in a new issue