date
From NetBSD Wiki
The date(1) utility displays the current date and time when invoked without arguments. Providing arguments will format the date and time in a user-defined way or set the date. Only the superuser may set the date.
% date Wed May 24 01:37:01 CEST 2006
Formatting Options:
% date +%T 02:37:42 % date +%m/%d/%y 05/24/06 % date '+Date: %Y-%m-%d' Date: 2006-05-24
Setting the Date:
# date 1435
sets the time to 2:35 PM, without modifying the date.
PS: Time and date should be synchronized by ntpd(8) or rdate(8) when networking is available.
