mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-02 07:07:46 +00:00
Merge pull request #94 from fdncred/readd_maintainer_time
readd maintainer time
This commit is contained in:
commit
5854a517bd
1 changed files with 19 additions and 0 deletions
19
maintainer_time.nu
Normal file
19
maintainer_time.nu
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
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' ' ']
|
||||||
|
]
|
||||||
|
)
|
||||||
|
let now = (date now)
|
||||||
|
$m_table | update time {
|
||||||
|
each { |name|
|
||||||
|
$now | date to-timezone ($name | get tz) | date format '%c'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue