#Get UTC start time

15 messages · Page 1 of 1 (latest)

vagrant steppe
#

I don't believe there is a built-in way in Tauri, but you can store this value in State on startup.

ripe thicket
#

I didn't know where to find it on the tauri website

#

or docs

vagrant steppe
#

Are you primarily a Rust or JS dev?

#

You can store it in JS, but then if the user refreshes the page the data will be lost. On the Rust side the state will exist for the duration of the program.

ripe thicket
ripe thicket
#

I'm a little confused by tauri's docs and can't seem to find anything there

vagrant steppe
#

You'll see in this example the .manage() method to initialize State. And then in commands (and other places) you can access this value.

#

You may not need a Mutex if you never plan on updating this value.

ripe thicket
#

ah

#

thanks

ripe thicket
#

[SOLVED] Get UTC start time