Function: eshell/date

eshell/date is a function alias for current-time-string, defined in timefns.c.

Signature

(eshell/date &optional SPECIFIED-TIME ZONE)

Documentation

Return the current local time, as a human-readable string.

Programs can use this function to decode a time, since the number of columns in each field is fixed if the year is in the range 1000-9999. The format is Sun Sep 16 01:03:52 1973. However, see also the functions decode-time and format-time-string which provide a much more powerful and general facility.

If SPECIFIED-TIME is given, it is the time value to format instead of the current time. See format-time-string for the various forms of a time value.

The optional ZONE is omitted or nil for Emacs local time, t for Universal Time, wall for system wall clock time, or a string as in the TZ environment variable. It can also be a list (as from current-time-zone) or an integer (as from decode-time) applied without consideration for daylight saving time.

Aliases

eshell/date