Function Repository Resource:

SecondsToday

Source Notebook

Fractional number of seconds that have elapsed since midnight

Contributed by: Flip Phillips

ResourceFunction["SecondsToday"][]

returns number of seconds elapsed since 00:00 today.

Details and Options

Seconds are measured at a resolution of $TimeUnit or better.

Examples

Basic Examples (2) 

It is presently:

In[1]:=
Now
Out[1]=

Here is the number of seconds elapsed since midnight:

In[2]:=
ResourceFunction["SecondsToday"][]
Out[2]=

Applications (1) 

Wait three seconds:

In[3]:=
t0 = ResourceFunction["SecondsToday"][];
Pause[3];
ResourceFunction["SecondsToday"][] - t0
Out[5]=

Publisher

Flip Phillips

Version History

  • 1.0.0 – 03 July 2019

Author Notes

Developed with Egar Almeida during Wolfram Summer School 2019.

License Information