Wolfram Research

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

It is presently:

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

Applications

Wait three seconds:

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

Resource History

Source Metadata

License Information