Display or set date and time.
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 can set the date.
An operand with a leading plus (`+') sign signals a user-defined format string which specifies the format in which to display the date and time.
The format string can contain any of the conversion specifications described in the strftime(3) manual page, as well as any arbitrary text. A newline character is always output after the characters specified by the format string.
TZ The timezone to use when displaying dates. See environ(7) for more.
Download Nanny Mania for Mac to become the ultimate Nanny game. Date Added June. Operating Systems. Operating Systems Mac OS X 10.4 PPC, Macintosh, Mac OS X 10.3.9, Mac OS X 10.4 Intel, Mac. Petit tutoriel sur comment avoir Track Mania et autres.exe sur MAC OS X-=-=-=-=-LIENS-=-=-=-=-^^. Choose Apple menu System Preferences, then click Date & Time. Click the lock in the corner of the window, then enter your administrator password to unlock the settings. (The settings are dimmed when locked.) In the Date & Time pane, make sure that ”Set date and time automatically” is selected and your Mac is connected to the internet. Syntax date -nu -r seconds +format ccyymmddhhmm.ss Options -n The utility timed (8) is used to synchronize the clocks on groups of machines. By default, if timed is running, date will set the time on all of the machines in the local group.
/var/log/wtmp A record of date resets and time changes.
/var/log/messages A record of the user setting the time.
Examples
Output the date and time on two lines (%n separates):
$ date '+DATE: %m/%d/%y%nTIME: %H:%M:%S'
Set the date to 'June 13, 1985, 4:27 PM':
$ date 8506131627
Set the time to 2:32 PM, without modifying the date:
$ date 1432
Store the current date in a variable (in year-month-day format)
$ mydate=`date '+%Y-%m-%d';`
$ echo The date is: ${mydate};
Print the date as an ISO 8601 compliant date/time string:
$ date -u +'%Y-%m-%dT%H:%M:%SZ'
“Carpe Diem - Seize the day” - Horace
Related macOS commands:
timed(8)
cal - Display a calendar.
crontab - Schedule a command to run at a later time.
time - Measure Program Resource Use.
touch - Change file timestamps.
Is your Mac up to date with the latest version of the Mac operating system? Is it using the version required by a product that you want to use with your Mac? Which versions are earlier (older) or later (newer, more recent)? To find out, learn which version is installed now.
If your macOS isn't up to date, you may be able to update to a later version.
From the Apple menu in the corner of your screen, choose About This Mac. You should see the macOS name, such as macOS Big Sur, followed by its version number. If you need to know the build number as well, click the version number to see it.
These are all Mac operating systems, starting with the most recent. When a major new macOS is released, it gets a new name, such as macOS Big Sur. As updates that change the macOS version number become available, this article is updated to show the latest version of that macOS.
If your Mac is using an earlier version of any Mac operating system, you should install the latest Apple software updates, which can include important security updates and updates for the apps that are installed by macOS, such as Safari, Books, Messages, Mail, Music, Calendar, and Photos.
macOS | Latest version |
---|---|
macOS Big Sur | 11.3 |
macOS Catalina | 10.15.7 |
macOS Mojave | 10.14.6 |
macOS High Sierra | 10.13.6 |
macOS Sierra | 10.12.6 |
OS X El Capitan | 10.11.6 |
OS X Yosemite | 10.10.5 |
OS X Mavericks | 10.9.5 |
OS X Mountain Lion | 10.8.5 |
OS X Lion | 10.7.5 |
Mac OS X Snow Leopard | 10.6.8 |
Mac OS X Leopard | 10.5.8 |
Mac OS X Tiger | 10.4.11 |
Mac OS X Panther | 10.3.9 |
Mac OS X Jaguar | 10.2.8 |
Mac OS X Puma | 10.1.5 |
Mac OS X Cheetah | 10.0.4 |