File Exchange

image thumbnail

Convert Julian date to Normal Date

version 1.1.0.0 (2.54 KB) by M Sohrabinia
Accepts Julian Date(s) vector (numeric), gives normal date(s) in a character vector

4 Downloads

Updated 06 Jun 2012

View License

Julian Date input format: yyyyddd, e.g, 01 Jan 2009 = 2009001 or 31 Dec 2009 =
2009365. Normal date output format can be 'dd-mmm-yyyy' (e.g., 31-Dec-2009). If the given date is not in the above format (i.e., numeric with 7 significant digits such as 2012187.5 for 05 Jun 2012 12:00 PM), warnings will be returned. The second input argument is optional.
________________________________________
--Inputs:
jl_dates: one or a vector of numerical Julian dates (7 significant digits: 0000000.00)
dateFormat: format of the output string date (optional)
--Outputs:
normalDate: a character vector of output date(s)
status: a string character giving information about possible warnings
which will be generated if the input jl_dates vector does not follow
required conditions.

Comments and Ratings (3)

Fabio

'leapyear' requires Aerospace Toolbox.

Joey

Updates

1.1.0.0

Description of the function is updated and the inputs/outputs are more clarified.

MATLAB Release Compatibility
Created with R2008b
Compatible with any release
Platform Compatibility
Windows macOS Linux