Initial project import
This commit is contained in:
commit
23f2d29e32
11957 files changed
+1754577
No files matched your search
@@ -0,0 +1,12 @@
|
||||
import time
|
||||
import net.http
|
||||
|
||||
fn main() {
|
||||
resp := http.get('https://vlang.io/utc_now') or {
|
||||
eprintln('Failed to fetch data from the server. Error: ${err}')
|
||||
return
|
||||
}
|
||||
|
||||
t := time.unix(resp.body.int())
|
||||
println(t.format())
|
||||
}
|
||||
Reference in new issue
Block a user