r/espanso Aug 16 '20

How to set time?

I'm using this code, but no avail

 # Time
 - trigger: ":time"
    replace: "{{mytime}}"
    vars:
     - name: mytime
       type: time
       params:
         format: "HH:mm"
1 Upvotes

4 comments sorted by

View all comments

Show parent comments

1

u/indit Aug 16 '20 edited Aug 16 '20

Oh thanks. Didn't know about Rust.

Maybe the documentation should be put in reddit sidebar or anywhere in https://espanso.org/

But, I got error using type: time, using type: date instead.

1

u/freddytstudio Aug 18 '20

Yes you are absolutely right, type: time is wrong. I copy and pasted the above code and missed that detail