mirror of
https://github.com/nushell/nu_scripts.git
synced 2024-10-26 22:08:03 +03:00
21 lines
464 B
Plaintext
21 lines
464 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 {
|
|
each { |name|
|
|
$now | date to-timezone ($name | get tz) | date format '%c'
|
|
}
|
|
}
|
|
|