#JULIANDATE#

The current date on your development system when the AutoPlay application is built, in the form of an integer value representing the number of days since midnight on January 1, 4713 B.C.

For example, if you built the application on July 1, 2002, every occurrence of #JULIANDATE# in your project would be replaced with 2452457.

TIP

 

 

 

You can use #JULIANDATE# along with the "System - Get Date Time" action to build AutoPlay applications that expire a certain number of days after they are created. Just get the current Julian Date at run time, and store it in a custom variable named %JulianDate%. Then, subtract the Julian Date at build time from the Julian Date at run time, using the following formula: %JulianDate% - #JULIANDATE#.

If you want, you can copy and paste the following XML snippet into an action list in your project. It uses two actions to set up two custom variables for you: %JulianDate% and %DaysSinceBuilt%.

<IR_ACTIONS_LIST>
<Action name="Get Date Time">
<Type>139</Type>
<Function>0</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<Variable>%JulianDate%</Variable>
<ReturnType>0</ReturnType>
<Date>3</Date>
<Time>0</Time>
</Action>
<Action name="Set Value">
<Type>6</Type>
<Function>0</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<Variable>%DaysSinceBuilt%</Variable>
<Value>%JulianDate% - #JulianDate#</Value>
<Evaluate>1</Evaluate>
</Action>
</IR_ACTIONS_LIST>