Unix tips

From PC2wiki
Jump to: navigation, search

This article is a collection of Unix tips and tricks.

date

The -d option provides a way to specify dats in the past or future.

print ms ms 2:20 from now

date -d "2 hours 20 minutes"  +%s  

print regular time format 2:20 from now

date -d "2 hours 20 minutes" 

print ms for 10/23 at 17:00

date -d "10/23 17:00" +%s 


See Also