Things You'll Need:
- Linux manual
-
Step 1
Use "--date=STRING" to display and print times that are different than the time right now. The STRING you specify can display dates and times previous ("ago"), in the future ("next") and can show months, time zones and other options.
-
Step 2
Process many dates with the "-f" function. This is the DATEFILE tool and can save a lot of time while using standard input.
-
Step 3
Use "-r" to see when date and time were last modified.
-
Step 4
Set your system to Coordinated Universal Time with the "-u" function.
-
Step 1
Print Wednesday's date on Friday by entering this command:
date--date="2 days ago" -
Step 2
Print the date that is two weeks and three days from now by entering this command:
date--date="two weeks three days" -
Step 3
Display and print the date of Saint Patrick's Day this year by inputting this function:
date--date='17 March +%'. A full list of these Format controls, like percent, can be found on Webtools (see Resources below). -
Step 4
Change your systems date and time using this command:
date--set='year-date time marker"
For example, if you set your system's date and time at 10:07 in the morning on July 3 of this year, it would look like this:
date--set="2007-7-3 10:07 AM" -
Step 5
Set a slow running clock ahead by five minutes using this format:
date--set='+5 minutes' -
Step 6
Remember that when creating an argument relevant to setting time, you must limit your input to numbers only. You will want to use a two-digit month (MM), two-digit day (DD), two-digit hour (HH) and two-digit minute (MM).













Comments
mmmmna said
on 9/3/2007 Oops, pardon me.... SLP 9.2/9.3... typing too fast.
mmmmna said
on 9/3/2007 1] tip and warning: WHICH linux manual? Man DATE? Or are you thinking the manual that came in your boxed set?
2] This method was not allowed in SuSe Linux Professional, in the 2.x series. You had to use a different program in those versions. Oh yeah... you had to be root as well.
mmmmna said
on 9/3/2007 1] tip and warning: WHICH linux manual? Man DATE? Or are you thinking the manual that came in your boxed set?
2] This method was not allowed in SuSe Linux Professional, in the 2.x series. You had to use a different program in those versions. Oh yeah... you had to be root as well.