Creates a new dtu value with the specified date and time portions.
Syntax
static dtu dtu.New(int years, int months, int days, int hours, int minutes, int seconds, int milliseconds)
Parameters
Parameter | Type | Description |
---|---|---|
years (required) | int | The year portion of the new dtu object. Must be a positive integer. |
months (required) | int | The month portion of the new dtu object. Must be a positive integer between 1 and 12. |
days (required) | int | The day portion of the new dtu object. Must be a positive integer between 1 and the maximum number of days in the month determined by the year and month portions. |
hours (required) | int | The hour portion of the new dtu object. Must be a positive integer between 0 and 24, inclusive. |
minutes (required) | int | The minute portion of the new dtu object. Must be a positive integer between 0 and 59, inclusive. |
seconds (required) | int | The second portion of the new dtu object. Must be a positive integer between 0 and 59, inclusive. |
milliseconds (required) | int | The millisecond portion of the new dtu object. Must be a positive integer between 000 and 999, inclusive. |
Copyright © 2016 Mobilengine Corp. All rights reserved. version: 7.0.4.19927