CAT | Unix
a) 05/21/99
Ans : date+”%m/%d/%y”
b)Friday, May 21, 1999
Ans : date+”%A,%h%d,%y”
c)Friday, 05/21/1999
Ans : date+”%A,%d/%m/%y”
d)Day: Friday
Ans : date+”Day : %A”
e)Month: May
Ans: date+”Month : %h”
f)Year: 1999
Ans : date+”Year : %Y”
a) 08:22:24 PM
Ans : date +”%T%P”
b)08:22 PM
Ans :date+”%H : %M %P”
c) 08 AM
Ans : date+”%H %P”
d) Hours:08
Ans :date+”Hours : %H”
e) Hours:08 Minutes:22
Ans :date+”Hours :%H Minutes : %M”
f)Hours:08 Minutes:22 Seconds: 24
Ans : date+”Hours : %H Minutes : %m Seconds : %S”
6
DecWrite a command to get calendar of month of July in year 2008
0 Comments | Posted by chirags268 in Unix
6
DecWrite a command to find out which day of week was the beginning of our calendar (0001).
0 Comments | Posted by chirags268 in Unix
6
DecWrite a command to determine if year 2000 is a leap year.
0 Comments | Posted by chirags268 in Unix
![[del.icio.us]](http://www.itshala.com/wp-content/plugins/bookmarkify/delicious.png)
![[Digg]](http://www.itshala.com/wp-content/plugins/bookmarkify/digg.png)
![[dzone]](http://www.itshala.com/wp-content/plugins/bookmarkify/dzone.png)
![[Facebook]](http://www.itshala.com/wp-content/plugins/bookmarkify/facebook.png)
![[Google]](http://www.itshala.com/wp-content/plugins/bookmarkify/google.png)
![[LinkedIn]](http://www.itshala.com/wp-content/plugins/bookmarkify/linkedin.png)
![[Twitter]](http://www.itshala.com/wp-content/plugins/bookmarkify/twitter.png)
![[Windows Live]](http://www.itshala.com/wp-content/plugins/bookmarkify/windowslive.png)
![[Yahoo!]](http://www.itshala.com/wp-content/plugins/bookmarkify/yahoo.png)
![[Email]](http://www.itshala.com/wp-content/plugins/bookmarkify/email.png)
