Saturday 30 November 2013

Date and Time Change in Linux

Following example is to Linux Set Date

Use the following syntax to set new data and time:
date --set="STRING"

Following example, set new data to 2 Oct 2006 18:00:00, type the following command as root user:
# date -s "1 DEC 2013 18:00:00"

OR
# date --set="1 DEC 2013 18:00:00"

We can also simplify format using following syntax:
# date +%Y%m%d -s "20131128"

Only Linux Set Time

To set time use the following syntax:
# date +%T -s "10:13:13"

Where,

10: Hour (hh)
13: Minute (mm)
13: Second (ss)
Use %p locale’s equivalent of either AM or PM, enter:
# date +%T%p -s "6:10:30AM"
# date +%T%p -s "12:10:30PM"

1 comment:

  1. Jadwal Daftar Sabung Ayam SV388 15 Februari 2019 di Situs Judi Sabung Ayam Online Melalui Agen Resmi Taruhan Sabung Ayam Live Asli Thailand.

    Jumat, Banten 15 Februari 2019 – Pada Hari Tersebut Akan Di Laksanakan Berbagai Pertandingan Sabung Ayam Secara Live di Arena Sabung Ayam Thailand.

    Untuk Info Lebih Lanjut Bisa Hub kami Di :
    wechat : bolavita
    line : cs_bolavita
    whatsapp : +628122222995
    BBM: BOLAVITA

    ReplyDelete