TimeSpan(Object)

Represents a period of time. When creating a TimeSpan, passed in values will be normalized. Example: new TimeSpan(0, 122) will normalize into 2 hours and 2 minutes.

Constructors

TimerSpan(Number milliseconds) Creates a new TimeSpan
TimerSpan(Number hours, Number minutes, Number seconds, Number milliseconds) Creates a new TimeSpan.

Fields

Days Number Number of days.
Hours Number Number hours.
Milliseconds Number Number milliseconds.
Minute Number Number of minutes.
Seconds Number Number of seconds.
Type Type Returns Type.TimeSpan

 

Functions

Add(Number milliSeconds) TimeSpan Returns a copy of the TimeSpan with the added milliseconds.
Add(TimeSpan timeSpan) TimeSpan Returns a copy of the TimeSpan with the added TimeSpan amount.
Subtract(Number milliSeconds) TimeSpan Returns a copy of the TimeSpan with the subtracted milliseconds.
Subtract(TimeSpan timeSpan) TimeSpan Returns a copy of the TimeSpan with the substracted TimeSpan amount.

Last edited May 29, 2011 at 10:10 PM by dahrkdaiz, version 4

Comments

No comments yet.