mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-05 08:37:46 +00:00
rename date format
to format date
(#571)
This commit is contained in:
parent
1d8457fa9d
commit
be47e43db6
17 changed files with 37 additions and 37 deletions
|
@ -9,7 +9,7 @@
|
|||
use get-weather.nu get_weather
|
||||
|
||||
# Create a mutable weather table to hold the weather data
|
||||
$env.WEATHER = (get_weather | upsert last_run_time { (date now | date format '%Y-%m-%d %H:%M:%S %z')})
|
||||
$env.WEATHER = (get_weather | upsert last_run_time { (date now | format date '%Y-%m-%d %H:%M:%S %z')})
|
||||
|
||||
#command to run at interval
|
||||
def-env timed_weather_run [
|
||||
|
@ -30,7 +30,7 @@ def-env timed_weather_run [
|
|||
} else {
|
||||
# $"interval met, running command: [($command)](char nl)"
|
||||
|
||||
$env.WEATHER = (get_weather | upsert last_run_time { (date now | date format '%Y-%m-%d %H:%M:%S %z')})
|
||||
$env.WEATHER = (get_weather | upsert last_run_time { (date now | format date '%Y-%m-%d %H:%M:%S %z')})
|
||||
let temp = ($env.WEATHER.Temperature)
|
||||
let emoji = ($env.WEATHER.Emoji)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue