>  Docs Center  >  Libraries  >  Coyote  >  CGJULIAN2DATE

CGJULIAN2DATE

CGJULIAN2DATE
  The purpose of this function is to convert a Julian number into a date string. The format
  of the string is selected with the `Format` keyword.

Categories


    Utilities
   

Returns


    A string or string array of dates corresponding to the Julian number that is input.
   

Params


    jnumber: in, required, type=long
        The Julian number that is to be converted. This may be an array of Julian numbers.
     

Keywords


    format: in, optional, type=integer, default=0
        An integer value that selects the date format.
        Possible values are::
              0: 09 Jan 1951
              1: 09 Jan 1951 08:21:10
              2: 09 Jan 1951 08h 21m 10s
              3: Jan 9, 1951
              4: Jan 9, 1951 08:21:10
              5: Jan 9, 1951 08h 21m 10s
              6: 09 JAN 1951
              7: 09 JAN 1951 08:21:10
              8: 09 JAN 1951 08h 21m 10s
              9: JAN 9, 1951
            10: JAN 9, 1951 08:21:10
            11: JAN 9, 1951 08h 21m 10s
            12: 09 January 1951
            13: 09 January 1951 08:21:10
            14: 09 January 1951 08h 21m 10s
            15: January 9, 1951
            16: January 9, 1951 08:21:10
            17: January 9, 1951 08h 21m 10s
            18: 01091951
            19: 09011951
            20: 19510109
       

Examples


    IDL> jnumber = Julday(8, 9, 1951, 8, 21, 10)
    IDL> Print, cgJulian2Date(jnumber, Format=1)
        09 Aug 1951 12:00:00
       

Author


    FANNING SOFTWARE CONSULTING::
      David W. Fanning
      1645 Sheely Drive
      Fort Collins, CO 80526 USA
      Phone: 970-221-0438
      E-mail: david@idlcoyote.com
      Coyote's Guide to IDL Programming: http://www.idlcoyote.com

History


    Change History::
        Written, 9 January 2013 by David W. Fanning.
        Added formats 18 through 20. 1 Feb 2013. DWF.

Copyright


    Copyright (c) 2013, Fanning Software Consulting, Inc.



© 2019 Harris Geospatial Solutions, Inc. |  Legal
My Account    |    Store    |    Contact Us