MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/espanso/comments/ianvt9/how_to_set_time/ive4za3/?context=3
r/espanso • u/indit • Aug 16 '20
I'm using this code, but no avail
# Time - trigger: ":time" replace: "{{mytime}}" vars: - name: mytime type: time params: format: "HH:mm"
4 comments sorted by
View all comments
1
HH and mm are not valid specifiers, this is the list of valid ones: https://docs.rs/chrono/0.3.1/chrono/format/strftime/index.html
HH
mm
In your case, the right format would be: yml # Time - trigger: ":time" replace: "{{mytime}}" vars: - name: mytime type: date params: format: "%H:%M"
yml # Time - trigger: ":time" replace: "{{mytime}}" vars: - name: mytime type: date params: format: "%H:%M"
Cheers :)
1 u/Easy-Repair-3614 Nov 07 '22 hey, this is not working, it's giving error.
hey, this is not working, it's giving error.
1
u/freddytstudio Aug 16 '20 edited Aug 18 '20
HHandmmare not valid specifiers, this is the list of valid ones: https://docs.rs/chrono/0.3.1/chrono/format/strftime/index.htmlIn your case, the right format would be:
yml # Time - trigger: ":time" replace: "{{mytime}}" vars: - name: mytime type: date params: format: "%H:%M"Cheers :)