Question 3.33: You want to manually set the date and time on your Raspberry......

You want to manually set the date and time on your Raspberry Pi.

Step-by-Step
The 'Blue Check Mark' means that this solution was answered by an expert.
Learn more on how do we answer questions.

Use the Linux date command.

The date and time format is MMDDHHMMYYYY, where MM is the month number, DD the day of the month, HH and MM the hours and minutes, respectively, and YYYY the year.

For example:

$ sudo date 010203042013
Wed Jan 2 03:04:00 UTC 2013

Discussion

If the Raspberry Pi is connected to the Internet, then as it boots up it will automatically set its own time using an Internet time server.

You can also use date to display the UTC time by just entering date on its own:

$ date
Wed Jan 2 03:08:14 UTC 2013

See Also

If you want your Raspberry Pi to maintain the correct time, even when there is no network, then you can use an RTC (real-time clock) module (Recipe 11.13).

Related Answered Questions

Question: 3.34

Verified Answer:

Use the Linux df command: $ df -h Filesystem   ...
Question: 3.32

Verified Answer:

Edit the file ~/.bashrc using nano (Recipe 3.6), a...
Question: 3.31

Verified Answer:

Run the program or command in the background using...
Question: 3.30

Verified Answer:

Redirect the output to /dev/null using >. For e...
Question: 3.24

Verified Answer:

Use the Task Manager utility, which you’ll find on...
Question: 3.29

Verified Answer:

Use the pipe command, which is the bar symbol (|) ...
Question: 3.27

Verified Answer:

Use the > command to redirect output that would...
Question: 3.28

Verified Answer:

Use the cat command to concatenate a number of fil...
Question: 3.26

Verified Answer:

Use the lsusb command. This will list all the devi...
Question: 3.25

Verified Answer:

Depending on the file type, you will need to use t...