Spotlight
After the Circus

Random Sample
Chicken and Veggies








contact me
jean at geemoo dot ca
Blog

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"
1237817789
{jean@lithium} date -d \@1237817789 +"%Y%m%d"
20090323
Tags: linux