mirror of
https://github.com/nushell/nu_scripts.git
synced 2024-09-11 13:45:56 +03:00
This PR is part of porting all old scripts #221 and ports all root `before_v0.60/*.nu` scripts to `modules/*.nu`
19 lines
440 B
Plaintext
19 lines
440 B
Plaintext
let m_table = (
|
|
[
|
|
['name', 'tz', 'time'];
|
|
['andres' 'America/Guayaquil' ' ']
|
|
['fdncred' 'US/Central' ' ']
|
|
['gedge' 'US/Eastern' ' ']
|
|
['jt' 'NZ' ' ']
|
|
['wycats' 'US/Pacific' ' ']
|
|
['kubouch' 'Europe/Helsinki' ' ']
|
|
['elferherrera' 'Europe/London' ' ']
|
|
['storm' 'US/Pacific' ' ']
|
|
]
|
|
)
|
|
let now = (date now)
|
|
$m_table | update time {|row|
|
|
$now | date to-timezone ($row | get tz) | format date '%c'
|
|
}
|
|
|