Skip to main content
  • Home
  • Documentation
  • FAQ
  • Downloads
  • Support
  • Current Release Notes
  • Ferret Users Guide
    • Users Guide Index
    • Commands Reference
    • 1. Introduction
    • 2. Data Set Basics
    • 3. Variables & Expressions
    • 4. Grids & Regions
    • 5. Animations & Gif Images
    • 6. Customizing Plots
    • 7. Handling String Data Symbols
    • 8. Working with Special Data Sets
    • 9. Computing Environment
    • 10. Converting to NetCDF
    • 11. Writing External Functions
    • Glossary
    • Appendix A: Functions
    • Appendix B: PPLUS Guide
    • Appendix C: Ferret-Specific PPLUS Enhancements
  • Previous Release Notes
  • Tutorials and Demos
    • Ferret Tour
    • DSG files: Discrete Sampling Geometries Demo
    • Ferret sorting demo
    • Fast Fourier Transforms demo
    • Empirical Orthogonal Functions demo
    • Ferret objective analysis demo
    • Ferret Palette Demo
    • Map projections
    • Ferret polygon vector demo
    • Ferret Graticules demo
    • Ferret Polytube Demo
    • Ferret Polymark Demo
    • Ferret Constant-Array demo
    • Ferret land_detail demo
    • COADS Tour
    • Levitus Tour
    • Use OPeNDAP
    • Ferret binary read demo
  • PyFerret
    • PyFerret Downloads and Install ../../faq/ferret-faqs.html
    • What is PyFerret?
    • Why use PyFerret?
    • PyFerret for the Ferret user
    • PyFerret command syntax: quick-start notes
    • PyFerret for the Python user
    • Graphics in PyFerret ?
    • New Ferret functionality
    • PyFerret Python functions and constants
    • PyFerret Python objects and methods
    • Ferret external functions in Python
    • Ferret Fortran external functions
    • PyFerret metadata-and-data dictionaries
  • OPeNDAP
    • OPeNDAP usage in Ferret
    • Use OPeNDAP Demo
    • Test OPeNDAP

DAYS1900TOYMDHMS

DAYS1900TOYMDHMS(day1900) Converts Julian days since 1-Jan-1900 to values year, month, day, hour, minute, second.

Argument:

day1900

Julian day counted from 1-jan-1900

     

Result Axes:

X

Inherited from argument

 

Y

Inherited from argument

 

Z

ABSTRACT (results occupy indices 1..6)

 

T

Inherited from argument

This function applies only to time in the standard, Gregorian calendar.

Example:

Create a variable based on a time axis. List the result of DAYS1900TOYMDHMS.

yes? DEF AXIS/T=28-JAN-2003:3-FEB-2003:1/UNITS=days/T0=1-JAN-1900 timeax
yes? LET tday = T[gt=timeax]
yes? LIST days1900toymdhms(tday)
VARIABLE : DAYS1900TOYMDHMS(TDAY)
SUBSET : 6 by 9 points (Z-TIME)
1 2 3 4 5 6 
1 2 3 4 5 6
28-JAN-2003 00 / 1: 2003. 1. 28. 0. 0. 0.
29-JAN-2003 00 / 2: 2003. 1. 29. 0. 0. 0.
30-JAN-2003 00 / 3: 2003. 1. 30. 0. 0. 0.
31-JAN-2003 00 / 4: 2003. 1. 31. 0. 0. 0.
01-FEB-2003 00 / 5: 2003. 2. 1. 0. 0. 0.
02-FEB-2003 00 / 6: 2003. 2. 2. 0. 0. 0.
03-FEB-2003 00 / 7: 2003. 2. 3. 0. 0. 0.