<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="es">
	<id>https://wiki.cabal.mx/index.php?action=history&amp;feed=atom&amp;title=Comandos_de_la_terminal%2Fdate</id>
	<title>Comandos de la terminal/date - Historial de revisiones</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.cabal.mx/index.php?action=history&amp;feed=atom&amp;title=Comandos_de_la_terminal%2Fdate"/>
	<link rel="alternate" type="text/html" href="https://wiki.cabal.mx/index.php?title=Comandos_de_la_terminal/date&amp;action=history"/>
	<updated>2026-04-05T05:15:38Z</updated>
	<subtitle>Historial de revisiones para esta página en el wiki</subtitle>
	<generator>MediaWiki 1.32.1</generator>
	<entry>
		<id>https://wiki.cabal.mx/index.php?title=Comandos_de_la_terminal/date&amp;diff=5157&amp;oldid=prev</id>
		<title>Rrc en 21:22 13 ene 2014</title>
		<link rel="alternate" type="text/html" href="https://wiki.cabal.mx/index.php?title=Comandos_de_la_terminal/date&amp;diff=5157&amp;oldid=prev"/>
		<updated>2014-01-13T21:22:47Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Página nueva&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__&lt;br /&gt;
* [[:#date | date]]&lt;br /&gt;
&lt;br /&gt;
== date ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ~]$ date --help&lt;br /&gt;
Usage: date [OPTION]... [+FORMAT]&lt;br /&gt;
  or:  date [-u|--utc|--universal] [MMDDhhmm[[CC]YY][.ss]]&lt;br /&gt;
Display the current time in the given FORMAT, or set the system date.&lt;br /&gt;
&lt;br /&gt;
  -d, --date=STRING         Display time described by String, instead of &amp;#039;now&amp;#039;&lt;br /&gt;
                            this can be in almost any common format.  &lt;br /&gt;
                            It can contain month names, timezones, &amp;#039;am&amp;#039; and &amp;#039;pm&amp;#039;,&lt;br /&gt;
                            &amp;#039;yesterday&amp;#039;, &amp;#039;ago&amp;#039;, &amp;#039;next&amp;#039;, etc.&lt;br /&gt;
  -f, --file=DATEFILE       like --date once for each line of DATEFILE&lt;br /&gt;
  -I[TIMESPEC], --iso-8601[=TIMESPEC]  output date/time in ISO 8601 format.&lt;br /&gt;
                            TIMESPEC=&amp;#039;date&amp;#039; for date only (the default),&lt;br /&gt;
                            &amp;#039;hours&amp;#039;, &amp;#039;minutes&amp;#039;, &amp;#039;seconds&amp;#039;, or &amp;#039;ns&amp;#039; for date&lt;br /&gt;
                            and time to the indicated precision.&lt;br /&gt;
  -r, --reference=FILE      display the last modification time of FILE&lt;br /&gt;
  -R, --rfc-2822            output date and time in RFC 2822 format.&lt;br /&gt;
                            Example: Mon, 07 Aug 2006 12:34:56 -0600&lt;br /&gt;
      --rfc-3339=TIMESPEC   output date and time in RFC 3339 format.&lt;br /&gt;
                            TIMESPEC=&amp;#039;date&amp;#039;, &amp;#039;seconds&amp;#039;, or &amp;#039;ns&amp;#039; for&lt;br /&gt;
                            date and time to the indicated precision.&lt;br /&gt;
                            Date and time components are separated by&lt;br /&gt;
                            a single space: 2006-08-07 12:34:56-06:00&lt;br /&gt;
  -s, --set=STRING          set time described by STRING&lt;br /&gt;
  -u, --utc, --universal    print or set Coordinated Universal Time&lt;br /&gt;
      --help     display this help and exit&lt;br /&gt;
      --version  output version information and exit&lt;br /&gt;
&lt;br /&gt;
FORMAT controls the output.  Interpreted sequences are:&lt;br /&gt;
&lt;br /&gt;
  %%   a literal %&lt;br /&gt;
  %a   locale&amp;#039;s abbreviated weekday name (e.g., Sun)&lt;br /&gt;
  %A   locale&amp;#039;s full weekday name (e.g., Sunday)&lt;br /&gt;
  %b   locale&amp;#039;s abbreviated month name (e.g., Jan)&lt;br /&gt;
  %B   locale&amp;#039;s full month name (e.g., January)&lt;br /&gt;
  %c   locale&amp;#039;s date and time (e.g., Thu Mar  3 23:05:25 2005)&lt;br /&gt;
  %C   century; like %Y, except omit last two digits (e.g., 20)&lt;br /&gt;
  %d   day of month (e.g., 01)&lt;br /&gt;
  %D   date; same as %m/%d/%y&lt;br /&gt;
  %e   day of month, space padded; same as %_d&lt;br /&gt;
  %F   full date; same as %Y-%m-%d&lt;br /&gt;
  %g   last two digits of year of ISO week number (see %G)&lt;br /&gt;
  %G   year of ISO week number (see %V); normally useful only with %V&lt;br /&gt;
  %h   same as %b&lt;br /&gt;
  %H   hour (00..23)&lt;br /&gt;
  %I   hour (01..12)&lt;br /&gt;
  %j   day of year (001..366)&lt;br /&gt;
  %k   hour, space padded ( 0..23); same as %_H&lt;br /&gt;
  %l   hour, space padded ( 1..12); same as %_I&lt;br /&gt;
  %m   month (01..12)&lt;br /&gt;
  %M   minute (00..59)&lt;br /&gt;
  %n   a newline&lt;br /&gt;
  %N   nanoseconds (000000000..999999999)&lt;br /&gt;
  %p   locale&amp;#039;s equivalent of either AM or PM; blank if not known&lt;br /&gt;
  %P   like %p, but lower case&lt;br /&gt;
  %r   locale&amp;#039;s 12-hour clock time (e.g., 11:11:04 PM)&lt;br /&gt;
  %R   24-hour hour and minute; same as %H:%M&lt;br /&gt;
  %s   seconds since 1970-01-01 00:00:00 UTC&lt;br /&gt;
  %S   second (00..60)&lt;br /&gt;
  %t   a tab&lt;br /&gt;
  %T   time; same as %H:%M:%S&lt;br /&gt;
  %u   day of week (1..7); 1 is Monday&lt;br /&gt;
  %U   week number of year, with Sunday as first day of week (00..53)&lt;br /&gt;
  %V   ISO week number, with Monday as first day of week (01..53)&lt;br /&gt;
  %w   day of week (0..6); 0 is Sunday&lt;br /&gt;
  %W   week number of year, with Monday as first day of week (00..53)&lt;br /&gt;
  %x   locale&amp;#039;s date representation (e.g., 12/31/99)&lt;br /&gt;
  %X   locale&amp;#039;s time representation (e.g., 23:13:48)&lt;br /&gt;
  %y   last two digits of year (00..99)&lt;br /&gt;
  %Y   year&lt;br /&gt;
  %z   +hhmm numeric time zone (e.g., -0400)&lt;br /&gt;
  %:z  +hh:mm numeric time zone (e.g., -04:00)&lt;br /&gt;
  %::z  +hh:mm:ss numeric time zone (e.g., -04:00:00)&lt;br /&gt;
  %:::z  numeric time zone with : to necessary precision (e.g., -04, +05:30)&lt;br /&gt;
  %Z   alphabetic time zone abbreviation (e.g., EDT)&lt;br /&gt;
&lt;br /&gt;
By default, date pads numeric fields with zeroes.&lt;br /&gt;
The following optional flags may follow &amp;#039;%&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
  -  (hyphen) do not pad the field&lt;br /&gt;
  _  (underscore) pad with spaces&lt;br /&gt;
  0  (zero) pad with zeros&lt;br /&gt;
  ^  use upper case if possible&lt;br /&gt;
  #  use opposite case if possible&lt;br /&gt;
&lt;br /&gt;
After any flags comes an optional field width, as a decimal number;&lt;br /&gt;
then an optional modifier, which is either&lt;br /&gt;
E to use the locale&amp;#039;s alternate representations if available, or&lt;br /&gt;
O to use the locale&amp;#039;s alternate numeric symbols if available.&lt;br /&gt;
&lt;br /&gt;
Examples:&lt;br /&gt;
Convert seconds since the epoch (1970-01-01 UTC) to a date&lt;br /&gt;
  $ date --date=&amp;#039;@2147483647&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Show the time on the west coast of the US (use tzselect(1) to find TZ)&lt;br /&gt;
  $ TZ=&amp;#039;America/Los_Angeles&amp;#039; date&lt;br /&gt;
&lt;br /&gt;
Show the local time for 9AM next Friday on the west coast of the US&lt;br /&gt;
  $ date --date=&amp;#039;TZ=&amp;quot;America/Los_Angeles&amp;quot; 09:00 next Fri&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Report date bugs to bug-coreutils@gnu.org&lt;br /&gt;
GNU coreutils home page: &amp;lt;http://www.gnu.org/software/coreutils/&amp;gt;&lt;br /&gt;
General help using GNU software: &amp;lt;http://www.gnu.org/gethelp/&amp;gt;&lt;br /&gt;
For complete documentation, run: info coreutils &amp;#039;date invocation&amp;#039;&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ComandosDeLaTerminal]$ date&lt;br /&gt;
Mon Jan 13 15:20:19 CST 2014&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ~]$ date -d yesterday&lt;br /&gt;
Sun Jan 12 15:09:13 CST 2014&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ~]$ date -d &amp;quot;5 days ago&amp;quot;&lt;br /&gt;
Wed Jan  8 15:09:46 CST 2014&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ~]$ date -d &amp;quot;next month&amp;quot;&lt;br /&gt;
Thu Feb 13 15:10:18 CST 2014&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ~]$ date -I &lt;br /&gt;
2014-01-13&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ~]$ date -Ihours&lt;br /&gt;
2014-01-13T15-0600&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ~]$ date -Iminutes&lt;br /&gt;
2014-01-13T15:12-0600&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ~]$ date -Iseconds&lt;br /&gt;
2014-01-13T15:12:53-0600&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ~]$ date -Ins&lt;br /&gt;
2014-01-13T15:13:06,539486184-0600&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ~]$ cd ComandosDeLaTerminal/&lt;br /&gt;
[rrc@Llawyr ComandosDeLaTerminal]$ date -rSortFile&lt;br /&gt;
Sat Nov 16 13:16:02 CST 2013&lt;br /&gt;
[rrc@Llawyr ComandosDeLaTerminal]$ ls -al SortFile &lt;br /&gt;
-rw------- 1 rrc rrc 12 Nov 16 13:16 SortFile&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ComandosDeLaTerminal]$ date -R&lt;br /&gt;
Mon, 13 Jan 2014 15:15:00 -0600&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ComandosDeLaTerminal]$ date --rfc-3339=date&lt;br /&gt;
2014-01-13&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ComandosDeLaTerminal]$ date --rfc-3339=seconds&lt;br /&gt;
2014-01-13 15:16:00-06:00&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ComandosDeLaTerminal]$ date +&amp;quot;%Y%m%d&amp;quot;&lt;br /&gt;
20140113&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ComandosDeLaTerminal]$ date +&amp;quot;%d de %B, %Y&amp;quot;&lt;br /&gt;
13 de January, 2014&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ComandosDeLaTerminal]$ date --date=&amp;#039;@539486184&amp;#039;&lt;br /&gt;
Wed Feb  4 19:16:24 CST 1987&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ComandosDeLaTerminal]$ date --date=&amp;#039;TZ=&amp;quot;America/Los_Angeles&amp;quot; 09:00 next Fri&amp;#039;&lt;br /&gt;
Fri Jan 17 11:00:00 CST 2014&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Comandos de la terminal]]&lt;/div&gt;</summary>
		<author><name>Rrc</name></author>
		
	</entry>
</feed>