Function: erc-current-time

erc-current-time is a for float-time, defined in timefns.c.

Signature

(erc-current-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 encode-time, or (if you need time as a string) format-time-string.

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)