The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
convert Julian date to calender date srikanthus2002 Shell Programming and Scripting 6 05-08-2007 06:27 AM
Calendar date to Julian and Back BCarlson Shell Programming and Scripting 4 05-14-2005 05:18 PM
Converting YYYYMMDD to Julian dfran1972 Shell Programming and Scripting 5 04-28-2005 10:34 AM
Julian Date lesstjm Shell Programming and Scripting 3 04-17-2003 03:39 PM
Modified dates to a file without the cut command cypher UNIX for Advanced & Expert Users 4 12-05-2001 05:00 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 06-26-2006
shan2on shan2on is offline
Registered User
  
 

Join Date: Jun 2006
Posts: 3
Julian Dates and the Cal command

hey all,

I was wondering if it was possible to get the julian date with the cal command.

I know that the "-j" option will display it, however, i need the Julian Date of a specific date, in number.

For example, the User would enter their age like
19800101 or YYYMMDD, like so. This info is essentially $1.

The farthest I have gotten is,

cal $month $year -j

This will display the julian date numbers for the entire month, however i need it only for the $day parameter which is entered by the user.

cal does not manipulate the day parameter however,

any help would be greatly appreciated.

~shan2on
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:16 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0