DATE(1)
β¨ NAME β¨
okay so bestie, welcome to date(1) β manual name date(1), the βPrint or set the system date and timeβ icon π. Thatβs literally the whole job: peek at the clock or set it, and this page is your group chat with all the deets.
π¦ SYNOPSIS π¦
date [OPTION]... [+FORMAT]...
date [OPTION]... [MMDDhhmm[[CC]YY][.ss]]
FORMAT controls the output. Interpreted sequences are β yes, all of them, we are not skipping a single one π
:
%%β a literal%(example:%) π%aβ localeβs abbreviated weekday name (example:Sun) πΈ%Aβ localeβs full weekday name (example:Sunday) π%bβ localeβs abbreviated month name (example:Jan) π%Bβ localeβs full month name (example:January) π¦%cβ localeβs date and time (example:Thu Mar 3 23:05:25 2005) β%Cβ century; like%Y, except omit last two digits (example:20) π%dβ day of month (example:01) π%Dβ date; same as%m/%d/%y(example:12/31/99) β¨%eβ day of month, space padded; same as%_d(example:3) π«Ά%Fβ full date; same as%Y-%m-%d(example:2005-03-03) π%gβ last two digits of year of ISO week number (see%G) (example:05) π%Gβ year of ISO week number (see%V); normally useful only with%V(example:2005) π%hβ same as%b(example:Jan) π%Hβ hour (00..23) (example:23) π°οΈ%Iβ hour (01..12) (example:11) β°%jβ day of year (001..366) (example:062) π%kβ hour, space padded (0..23); same as%_H(example:3) πΈ%lβ hour, space padded (1..12); same as%_I(example:9) π«%mβ month (01..12) (example:03) π%Mβ minute (00..59) (example:30) π%nβ a newline (example:\n) π¦%Nβ nanoseconds (000000000..999999999) (example:123456789) β‘%pβ localeβs equivalent of either AM or PM; blank if not known (example:PM) πΈ%Pβ like%p, but lower case (example:pm) π%qβ quarter of year (1..4) (example:1) π%rβ localeβs 12-hour clock time (example:11:11:04 PM) β±οΈ%Rβ 24-hour hour and minute; same as%H:%M(example:23:30) π%sβ seconds since1970-01-01 00:00:00 UTC(example:1615432800) π₯%Sβ second (00..60) (example:30) π%tβ a tab (example:\t) π«Ά%Tβ time; same as%H:%M:%S(example:23:30:30) β%uβ day of week (1..7);1is Monday (example:4) π%Uβ week number of year, with Sunday as first day of week (00..53) (example:10) πΈ%Vβ ISO week number, with Monday as first day of week (01..53) (example:12) π%wβ day of week (0..6);0is Sunday (example:4) π¦%Wβ week number of year, with Monday as first day of week (00..53) (example:11) π%xβ localeβs date representation (example:03/03/2005) β¨%Xβ localeβs time representation (example:23:30:30) β°%yβ last two digits of year (00..99) (example:05) π%Yβ year (example:2005) π%zβ+hhmmnumeric time zone (example:-0400) π«%:zβ+hh:mmnumeric time zone (example:-04:00) π%::zβ+hh:mm:ssnumeric time zone (example:-04:00:00) π%:::zβ numeric time zone with:to necessary precision (example:-04, +05:30) π«Ά%Zβ alphabetic time zone abbreviation (example:EDT) πΈ
By default, date pads numeric fields with zeroes.
The following optional flags may follow %:
-(hyphen) β do not pad the field π_(underscore) β pad with spaces πΈ0(zero) β pad with zeros π^β use upper case if possible π#β use opposite case if possible π¦
After any flags comes an optional field width, as a decimal number; then an optional modifier, which is either:
Eβ use the localeβs alternate representations if available β¨Oβ use the localeβs alternate numeric symbols if available π
Examples because we love a demo π
Convert seconds since the epoch (1970-01-01 UTC) to a date:
date --date='@2147483647'
Show the time on the west coast of the US (use tzselect(1) to find TZ):
TZ='America/Los_Angeles' date
πΈ DESCRIPTION πΈ
Print or set the system date and time. Thatβs it. Thatβs the assignment, bestie β either check the clock or set it, and the rest of this page is the how π .
π OPTIONS π
-d,--date <STRING>β display time described bySTRING, not'now'β°-f,--file <DATEFILE>β like--date; once for each line ofDATEFILEπ-I,--iso-8601 [<FMT>]β output date/time in ISO 8601 format.FMT='date'for date only (the default),'hours','minutes','seconds', or'ns'for date and time to the indicated precision. Example:2006-08-14T02:34:56-06:00π- Possible values:
datehoursminutessecondsns
- Possible values:
--resolutionβ output the available resolution of timestamps. Example:0.000000001β‘-R,--rfc-emailβ output date and time in RFC 5322 format. Example:Mon, 14 Aug 2006 02:34:56 -0600π¬--rfc-3339 <FMT>β output date/time in RFC 3339 format.FMT='date','seconds', or'ns'for date and time to the indicated precision. Example:2006-08-14 02:34:56-06:00π°οΈ- Possible values:
datesecondsns
- Possible values:
--debugβ annotate the parsed date, and warn about questionable usage to stderr π¨-r,--reference <FILE>β display the last modification time ofFILEπ-s,--set <STRING>β set time described bySTRINGβ³-u,--universalβ print or set Coordinated Universal Time (UTC) π-h,--helpβ Print help π-V,--versionβ Print version π·οΈ[format]β the[format]slot at the end, periodt π
π VERSION π
v(uutils coreutils) 0.12.0 β thatβs the version, bestie β¨.
π thatβs the whole page, bestie. Signing off with source/version v(uutils coreutils) 0.12.0 and the date 2026-09-17 β mwah π
π¦ where this page comes from
- arch rolling: uutils-coreutils 0.12.0-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms