Data update
This commit is contained in:
parent
4bb20c9b71
commit
cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions
14
Task/Date-format/Odin/date-format.odin
Normal file
14
Task/Date-format/Odin/date-format.odin
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
package main
|
||||
|
||||
import "core:fmt"
|
||||
import "core:time"
|
||||
|
||||
main :: proc() {
|
||||
now := time.now()
|
||||
year, month, day := time.date(now)
|
||||
|
||||
weekday := time.weekday(now)
|
||||
|
||||
fmt.printfln("%d-%2d-%2d", year, month, day)
|
||||
fmt.printfln("%s, %s %2d, %d", weekday, month, day, year)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue