[dtrace-discuss] change timestamp format

Davide Vanoni davide.vanoni at gmail.com
Tue Nov 4 06:55:55 PST 2008


Hi! I'm a dtrace newbie. Is there a way to change the format of a timestamp? For example now I have this output with printf("%Y",timestamp):
"2008 Nov  4 15:44:37" 
I would like to have this kind of output instead: 
"2008-11-4 15:44:37"
How can I obtain it?
Thanks!
-- 
This message posted from opensolaris.org



More information about the dtrace-discuss mailing list