1

date time stamps in bash

view story
linux-howto

http://www.unix.com – I'm looking for a way to have the "date" command output the date in a specific format. I'm not familiar with the different ways to use the date command at all. i read up on it, but i dont get how to manipulate it. i know that i can get the date format to give me a format like: Code: 2012-10-13 by typing: Code: $(date +%Y-%m-%d) but i'm clueless on how to do the same for date formats like the below? how do i include the time? and timezone (where shown below)? Code: 2012/02/21 16:23:13 UTC [#|2012-02-21T17:17:39.495+0000 2012-02-21 16:34:43,897 [Tue Feb 21 (HowTos)