Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
DATE(1) 		     General Commands Manual			 DATE(1)

NAME
     date, clock - date and time

SYNOPSIS
     date [ option ] [ seconds ]
     clock

DESCRIPTION
     Print the date, in the format

	  Tue Aug 16 17:03:52 CDT 1977

     The options are

     -u     Report Greenwich Mean Time (GMT) rather than local time.

     -n     Report  the  date as the number of seconds since the epoch, 00:00:00
	    GMT, January 1, 1970.

     The conversion from Greenwich Mean Time to local time depends on the $time-
     zone environment variable; see ctime((3)).

     If the optional argument seconds is present, it is used as the time to con-
     vert rather than the real time.

     Clock draws a simple analog clock in its window.

SOURCE
     /src/cmd/date.c
     /src/cmd/draw/clock.c

									 DATE(1)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=date&sektion=1&manpath=FreeBSD+Ports+15.1.quarterly>

home | help