Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- use "time"
- actor Main
- new create(env: Env) =>
- (let seconds, let nanos) = Time.now()
- let d = PosixDate(seconds, nanos)
- env.out.print(d.format("%Y-%m-%d %H:%M:%SZ"))
- env.out.print(d.format("%Y-%m-%d %H:%M:%S.%LZ"))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement