Skip to content

now

time · scripts/time/now.m

: t = now ()

Current local date and time as one serial day number (see ‘datenum’).

Whole days since the epoch of datenum are in the integer part, so floor (now) identifies today, and the time of day is the fraction, so rem (now, 1) * 24 is the hour as a decimal.