date 996 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. .TH DATE 1
  2. .SH NAME
  3. date, clock \- date and time
  4. .SH SYNOPSIS
  5. .B date
  6. [
  7. .I option
  8. ] [
  9. .I seconds
  10. ]
  11. .br
  12. .B clock
  13. .SH DESCRIPTION
  14. Print the date, in the format
  15. .PP
  16. .B
  17. Tue Aug 16 17:03:52 CDT 1977
  18. .PP
  19. The options are
  20. .TP
  21. .B -u
  22. Report Greenwich Mean Time (GMT) rather than local time.
  23. .TP
  24. .B -n
  25. Report the date as the number of seconds since the
  26. epoch, 00:00:00 GMT, January 1, 1970.
  27. .PP
  28. The conversion from Greenwich Mean Time to local time depends on the
  29. .B $timezone
  30. environment variable; see
  31. .IR ctime (2).
  32. .PP
  33. If the optional argument
  34. .I seconds
  35. is present, it is used as the time to convert rather than
  36. the real time.
  37. .PP
  38. .I Clock
  39. draws a simple analog clock in its window.
  40. .SH FILES
  41. .TF /adm/timezone/local
  42. .TP
  43. .B /env/timezone
  44. Current timezone name and adjustments.
  45. .TP
  46. .B /adm/timezone
  47. A directory containing timezone tables.
  48. .TP
  49. .B /adm/timezone/local
  50. Default timezone file, copied by
  51. .IR init (8)
  52. into
  53. .BR /env/timezone .
  54. .PD
  55. .SH SOURCE
  56. .B /sys/src/cmd/date.c
  57. .br
  58. .B /sys/src/cmd/clock.c