After the Circus

Random Sample
Chicken and Veggies

contact me
jean at geemoo dot ca

Mar 23, 2009
Just found out this morning, that you can use the date command to convert from a timestamp back into any date formatting of your choosing. (Really, you can convert from any date format, but it was the timestamp that interested me at that time.)

Adding the @ symbol before the timestamp, makes date recognize it, where upon you can use any of the usual date variables to format you date. (man date for specifics on this)
{jean@lithium} date +"%s"
{jean@lithium} date -d \@1237817789 +"%Y%m%d"
Tags: linux