Show / Hide Table of Contents

CalYear


General System Function

The CalYear function returns a number representing the year of the calendar date within a Simulation Options' Run Length.

Syntax

CalYear()

Examples

If CalYear() = 2012 Then
{
    Inc Var1
    Dec Var2
}

The following example displays the year of the calendar date when an Entity enters the Truck Location.

Display CalYear()

CalYear Example 1


CalYear Example 2

Remarks

CalYear works only when you select Run Length Type: Calendar Date in Simulation Options.

In This Article
Back to top Generated by DocFX