Linux Command Merubah String Date ke Time

Berikut ini adalah linux command untuk merubah string Date ke Time

# date -d "20130301"
Fri Mar  1 00:00:00 WIT 2013

Formatnya yaitu : Y-M-D dimana Y=2013 , M=03 dan D=01 sehingga stringnya menjadi 20130301

Jika anda ingin mendapatkan nilai time maka gunakan command berikut ini

# date +"%s" -d "20130301"
1362070800

Selamat mencoba Linux command merubah stirng Date ke Time

Leave a Reply

Your email address will not be published. Required fields are marked *

What is 5 + 7 ?
Please leave these two fields as-is:
IMPORTANT! To be able to proceed, you need to solve the following simple math (so we know that you are a human) :-)

 

Wordpress SEO Plugin by SEOPressor