I’m doing it withing a TPS sript as part of a file name requirment by the state of Texas. They insiste the file name have that format appended to the file name
After reading more I am really confused as to what you want here.
You say you have input data 20160316 (YYYYMMDD) which needs to be converted to julian date.
Which one? two types of julian dates
1. A three-digit number giving the day of the year (001-366).
2. The Julian Day Number is a count of the number of calendar days that have elapsed since 1 January, 4713 BCE of the proleptic Julian calendar. The epoch time of 1 January 1970 corresponds to Julian Day Number 2440588.
#1
clock format [clock scan $dt ] -format “%j %Y”
==? 076 2016
#2
clock format [clock scan $dt ] -format “%J %y”
==> 2457464 16
Is this what you want? Adjust formatting characters to match what you need.
Author
Replies
Viewing 6 reply threads
The forum ‘Cloverleaf’ is closed to new topics and replies.