Wednesday, October 20, 2010

Print future date using unix date command


I have already discussed in one of my earlier post about how we can print future and past dates using UNIX date command, revisiting it again to show a very interesting date that we are going to witness today.

From DATE(1) man pages, some of the options used in this example are:

%H hour (00..23)
%M minute (00..59)
%d day of month (e.g, 01)
%m month (01..12)
%Y year

This is an interesting time in 2010, 8:10 PM of 20th Oct 2010, it going to be 20:10 20/10 2010. Lets try to print this using UNIX date command.




Hope you found it interesting !

No comments:

© Jadu Saikia www.UNIXCL.com