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.

View in manual

Probably introduced at or before Emacs version 21.1.

Aliases

erc-current-time rcirc-float-time (obsolete since 26.1) timeclock-time-to-seconds (obsolete since 26.1) time-to-seconds erc-emacs-time-to-erc-time org-float-time (obsolete since 9.0)

Source Code

// Defined in /usr/src/emacs/src/timefns.c
{
  return (FLOATP (specified_time) ? specified_time
	  : make_float (float_time (specified_time)));
}