Queenyunix
Programmer
Hi,
I wanted to display Century in Unix.
I tried with date +"%C"
Which is displaying Mon Aug 29 12:54:54 BST 2011. (Used capital C).
and when used date +"%c"
Displaying Mon Aug 29 12:54:33 2011. (used Small c)
But i want century (21) to get displayed. Please let me know how can i do that.
I wanted to display Century in Unix.
I tried with date +"%C"
Which is displaying Mon Aug 29 12:54:54 BST 2011. (Used capital C).
and when used date +"%c"
Displaying Mon Aug 29 12:54:33 2011. (used Small c)
But i want century (21) to get displayed. Please let me know how can i do that.