Function: float-time
float-time is a function defined in timefns.c.
Signature
(float-time &optional SPECIFIED-TIME)
Documentation
Return the current time, as a float number of seconds since the epoch.
If SPECIFIED-TIME is given, it is a time value to convert to float
instead of the current time. See format-time-string for the various
forms of a time value.
WARNING: Since the result is floating point, it may not be exact.
If precise time stamps are required, use either time-convert,
or (if you need time as a string) format-time-string.
Probably introduced at or before Emacs version 21.1.
Aliases
erc-emacs-time-to-erc-time
org-float-time (obsolete since 9.0)
rcirc-float-time (obsolete since 26.1)
time-to-seconds
erc-current-time
timeclock-time-to-seconds (obsolete since 26.1)
Source Code
// Defined in /usr/src/emacs/src/timefns.c
{
return (FLOATP (specified_time) ? specified_time
: make_float (float_time (specified_time)));
}