Coastal & Marine Geology InfoBank

Home FACS Activities Atlas Geology School Related Sites More

USGS InfoBank program -- julianday

Skip navigational links
Loading
InfoBank Programs: by Name   by Topic  
Expanded Description
Topic Description
Name
julianday
Synopsis
/infobank/programs/share/julianday.for
Description
  Program to convert between "Julian" dates (actually day of year) and

  year/month/days.
            
       
USAGE
  "a" = argument, "r" = referenced, "s" = set

  
  call julianday                        (with the following arguments)
         Mode                        [variable char*(*) r]
         DayOfYear                   [variable i*4 sr]
         Year                        [variable i*4 r]
         Month                       [variable i*4 sr]
         DayOfMonth                  [variable i*4 sr]
  
  where if Mode = "JULIAN" 
     then Year, Month, and DayOfMonth are passed to JULIANDAY - 
          DayOfYear is returned.
  if Mode = "YMD"    
     then DayOfYear and Year are passed to JULIANDAY -
          Month and DayOfMonth are returned.
           
    
SUBROUTINES
  changecase          (shared DRS external routine) 

    
    
FUNCTIONS
  mod                 (FORTRAN intrinsic function)  

    
    
FILES_USED
  unit=*(write)

    
    
DISCLAIMER
  Although this program has been used by the U.S. Geological Survey,

  no warranty, expressed or implied, is made by the Survey as to the
  accuracy and functioning of the program and related program
  material nor shall the fact of distribution constitute any such
  warranty, and no responsibility is assured by the Survey in
  connection therewith.
                    
    
AUTHOR
  Clint Steele       .for      2/2/88

     replaces JDTOMD and YMDTOJD subroutines.
  Jean Riordan    2/16/88
     Modify for DRS$SHARE cleanup and UNIX compatibility
  Carolyn Degnan    9/23/04
     Added implicit none.

    
Reads
Writes
Opens
Calls
      call changecase ('CAPITAL', TempMode)

Skip footer navigational links

Coastal and Marine Science Centers:  Pacific   St. Petersburg   Woods Hole  
InfoBank   Coastal and Marine Geology Program   Geologic Information   Ask-A-Geologist   USGS Disclaimer  


Accessibility FOIA Privacy Policies and Notices

Take Pride in America logo USA.gov logo U.S. Department of the Interior | U.S. Geological Survey
URL: http://walrus.wr.usgs.gov/infobank/programs/share/julianday.doc.html
Page Contact Information: InfoBank staff
Page Last Modified: Mon Sep 16 03:36:53 PDT 2013  (chd)