Creates a new dtl with the specified date and time portions.
Syntax
static dtl dtl.New(int years, int months, int days, int hours, int hours, int minutes, int seconds, int milliseconds)
Parameters
Parameter | Type | Description |
---|---|---|
years (required) | int | The year portion of the new dtl object. Must be a positive
integer of up to 9999, inclusive.
|
months (required) | int | The month portion of the new dtl object. Must be a positive
integer between 1 and 12, inclusive.
|
days (required) | int | The day portion of the new dtl object. Must be a positive
integer between 1 and the number of days in the month determined by the year and month
portions.
|
hours (required) | int | The hour portion of the new dtl object. Must be a positive
integer between 0 and 24, inclusive.
|
minutes (required) | int | The minute portion of the new dtl object. Must be a positive
integer between 0 and 59, inclusive.
|
seconds (required) | int | The second portion of the new dtl object. Must be a positive
integer between 0 and 59, inclusive.
|
milliseconds (required) | int | The millisecond portion of the new dtl object. Must be a positive
integer between 000 and 999, inclusive.
|
Remarks
If you pass the method out-of-range parameters, the script throws an error with a message that specifies the valid ranges for the invalid parameter.
The millisecond portion is not displayed when dates are traced to the console.
Copyright © 2016 Mobilengine Corp. All rights reserved. version: 7.0.4.19927