![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Date Function | charandevu | Shell Programming and Scripting | 1 | 04-02-2008 06:12 AM |
| Date Function | charandevu | Shell Programming and Scripting | 1 | 04-02-2008 04:44 AM |
| date issue-find prevoius date in a patricular format | bsandeep_80 | UNIX for Advanced & Expert Users | 3 | 11-15-2007 04:42 PM |
| date function | abey | Shell Programming and Scripting | 2 | 02-27-2006 01:28 AM |
| How to find Previous date and Coming date | arunava_maity | UNIX for Dummies Questions & Answers | 2 | 05-24-2001 08:41 AM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
You can use perl's date and time functions for this:
Code:
#!/usr/bin/perl
use POSIX;
$time_t = POSIX::mktime( 0, 0, 0, $ARGV[1], $ARGV[0]-1, $ARGV[2]-1900);
printf "%s\n",strftime("%A",localtime($time_t));
|
|
||||
|
chk this post:
Get Day of Week from date |