ConvertDate
Convert a date from one format to another. (Deprecated Command)
Syntax
ConvertDate <ScenarioPath> {InputFormat} {OutputFormat} "<DateTime>"
ATTENTION: THIS COMMAND IS DEPRECATED and has been replaced by:
Units_ConvertDescription
This command was deprecated in STK 10.1, it should no longer be used. This command has been replaced by the Units_Convert command.
The ConvertDate command allows you to convert a date from one format to another format. This doesn't affect the current date format set at the scenario level. "<DateTime>" is the date to be converted. {InputFormat} and {OutputFormat} can be (these values are case-insensitive):
- EpochSec
- EpochSecond
- EpochMin
- EpochMinute
- EpochHr
- EpochHour
- EpochDay
- EpochYear
- JulLcl
- JulianLcl
- JulianLocal
- JulUTC
- JulianUTC
- Jul4
- Julian4
- Julian4UTC
- JulDate
- JulianDate
- JDateOff
- JDateOffset
- JulDateOffset
- GregLcl
- GregorianLcl
- GregorianLocal
- GregUTC
- GregorianUTC
- DD/MM/YYYY
- YYDDD
- YYDDD.DDD
- YYYYDDD
- YYYYDDD.HHMMSS
- YYYYMMDD
- YYYYMMDD.DDD
- YYYY/MM/DDTIME
- YYYY/MM/DD
- YYYY:MM:DD
- YYYY:MM:DD:HH:MM:SS.sss
- MisElap
- MissionElapsed
- GMT
- GMTSYSTEM
- ZULU
- ModJulDate
- ModifiedJulianDate
- JulEphemDate
- JulianEphemerisDate
- JulianEphem
- JulTAI
- JulianTAI
- GregTAI
- GregorianTAI
- GregTDT
- GregorianTDT
- GregTDB
- GregorianTDB
- GPS
- GPSTime
- GregGPS
- GregGPSTime
- GregorianGPSTime
- ISO-YD
- ISO-YMD
Some conversions may Nack due to limitations of the various date formats. For example, the Julian local date is generally restricted to the years between 1950 and 2050.
Example
To perform a quick conversion from epoch seconds to Gregorian UTC:
ConvertDate * EPOCHSEC GREGUTC "12300.0"
ReturnMessage
CONVERTDATE 22
1 Jan 2000 03:25:00.00
Group Membership
This command belongs to the following group(s):
Version
10.1