date calculations using unix time -


Looking for help in Unix to get the following date tickets using Unix date:

  Today 12:00 AM 12:00 AM - 15 days ago 12:00 AM - 30 days ago   

In the Unix era timeline? ( 1300295838 )

today at 12 o'clock:

 To date arithmetic:  mydate = "` date +% D` 12:00 "  

date-d" $ mydate 15 To get the time of day era:

Date +% s

Put together in the innerer: / P >

  date -d "` date +% d` 12:00 15 days ago "+% s    

Comments