Wolfram Research

Function Repository Resource:

SecondsToday

Source Notebook

Fractional number of seconds that have elapsed since midnight

Contributed by: Flip Phillips  |  flip

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]=

Resource History

Source Metadata

License Information