The UNIX and Linux Forums  


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 07:27 AM
Derive date from a calendar autouser123 Shell Programming and Scripting 2 04-17-2007 04:33 PM
Find julian date for given corresponding date srikanthus2002 Shell Programming and Scripting 2 10-10-2006 10:33 PM
Julian Date lesstjm Shell Programming and Scripting 3 04-17-2003 04:39 PM
Need to go back 1 day using the date command cfoxwell UNIX for Dummies Questions & Answers 4 12-12-2001 12:11 AM

Closed Thread
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
  #1 (permalink)  
Old 05-13-2005
BCarlson BCarlson is offline
Registered User
  
 

Join Date: May 2005
Posts: 48
Calendar date to Julian and Back

I need Unix, ksh scripts that will convert dates - Gregorian to Julian and Julian to Gregorian.

Input for converting Gregorian to Julian would be in the form of CCYYMMDD with the output being CCYYDDD.

Input for converting Julian to Gregorian would be CCYYDDD with the output being CCYYMMDD.

Thanks in advance for any help you can give me.
  #2 (permalink)  
Old 05-13-2005
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,126
See "Yesterdays Date/Date Arithmetic" in our faq section.
  #3 (permalink)  
Old 05-13-2005
BCarlson BCarlson is offline
Registered User
  
 

Join Date: May 2005
Posts: 48
Question I'm new here. How do I see Yesterday's stuff?

I've been trying to find the FAQs but can't seem to get the right combination to see what you're talking of.
  #4 (permalink)  
Old 05-13-2005
reborg's Avatar
reborg reborg is offline Forum Staff  
Administrator
  
 

Join Date: Mar 2005
Location: Ireland
Posts: 4,240
Quote:
Originally Posted by BCarlson
I've been trying to find the FAQs but can't seem to get the right combination to see what you're talking of.
This thread
  #5 (permalink)  
Old 05-14-2005
BCarlson BCarlson is offline
Registered User
  
 

Join Date: May 2005
Posts: 48
Exclamation Thanks!! It appears as if that's exactly what I needed.

Will play around with it and let you know.
Closed Thread

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 02:00 AM.


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