This document is provided on an "AS IS" basis without warranties of any kind. Smartsite iXperion class libraries may change in future releases.
Determines whether the specified year is a leap year.

Namespace: Smartsite.Runtime.Modules
Assembly:  Smartsite.Runtime.Modules (in Smartsite.Runtime.Modules.dll)

Syntax

C#Copy imageCopy Code
[(IsDeterministic = true)]
public static <bool> IsLeapYear(
	 context,
	int year
)
Visual Basic (Declaration)Copy imageCopy Code
<(IsDeterministic := True)> _
Public Shared Function IsLeapYear ( _
	context As , _
	year As Integer _
) As (Of )

Parameters

context
IContext
The context.
year
Int32
The year (1 through 9999).

Return Value

True if the specified year is a leap year; otherwise, false.

See Also

Advanced