Sun Identity Manager Deployment Reference

DateLibrary

The DateLibrary is a default library of rules that control how dates and times are displayed in a deployment.


Note –

This library is displayed as the Date Library library object in the Identity Manager IDE.


Inputs:

See Table 4–5.

You must specify the following for a custom DateLibrary rule:

AuthType 

Rule

SubType 

Not specified 

Returns 

Boolean values of true or false. See Table 4–5.

The following table describes the example DateLibrary rules.

Table 4–5 Example DateLibrary Rules

Rule 

Input Variables 

Description 

Date Validation

mm/dd/yy yy

Determines valid date strings. If month or day values are provided in with single digits, the rule accounts for them appropriately. 

  • true if the string provided contains valid date components.

  • false if the string provided contains invalid date components.

Validate Day Month Year

  • month

  • day

  • year

Determines valid day, month, and year strings. If the month or the day values are provided in with single digits, the rule accounts for them appropriately. 

  • true if the string provided is a valid date.

  • false if the string provided is a invalid date.

Validate Time

HH:mm:ss

Determines valid time strings. If the time string is not in this format, or the components are out of bounds (for example, if the hour is less than zero or greater than 23), the rule returns a false.

  • true if the string provided is a valid time.

  • false if the string provided is a invalid time.