Previous Topic

Next Topic

Book Contents

Book Index

Julian dates

Tidal variable: <SysDate.jj>

Converts to:

<VARIABLE NAME="%%SHORT_JULDAY_jj_SysDate" VALUE="%%JULDAY %%MINUS 0" />

<VARIABLE NAME="%%jj_SysDate" VALUE="%%SHORT_JULDAY_jj_SysDate." />

Then %%jj_SysDate => %%SHORT_JULDAY_jj_SysDate.

%%SHORT_JULDAY_jj_SysDate. => %%JULDAY %%MINUS 0

%%JULDAY %%MINUS 0 => 008 %%MINUS 0

%%MINUS is a variable function that subtracts two numbers. We use it here to eliminate the leading zeros.

008 %%MINUS 0=> 8

NOTE: In Tidal the format jj should have a single leading zero in this example. So it is not a perfect conversion of Tidal behavior. However the format j works ok (same solution as above) and the format jjj will just be converted to %%JULDAY.

The string 'jj_SysDate' is just a unique number to avoid overriding each other’s values.

Parent Topic

Variable resolution examples