DateTime module tests

Constructor

new ()

Methods

testDay ():Void

Test day-related methods

testFormat ():Void

Test DateTime.format()

testFromIso8601String ():Void

Test DateTime.fromString() for 'YYYY-MM-DDThh:mm:ss[.SSS]Z' format

testHour ():Void

Test hour-related methods

testLeap ():Void

DateTime.isLeap(year)

testMake ():Void

Test Date.make()

testMath ():Void

Test date-time arithmetics

testMinute ():Void

Test minute-related methods

testMonth ():Void

Test month-related methods

testNow ():Void

Test DateTime.now()

testSecond ():Void

Test second-related methods

testSnap ():Void

Test snapping

testWeek ():Void

Test week-related methods

testYear ():Void

Test year-related methods

Static variables

staticinline read onlySTAMP_01:Int

2014-09-15 17:51:35

staticinline read onlySTAMP_02:Int

1973-01-01 00:00:00

staticinline read onlySTAMP_03:Int

2014-08-31 23:59:59

staticinline read onlySTAMP_04:Int

2012-02-29 00:00:00

staticinline read onlySTAMP_05:Int

1972-02-29 23:59:59

staticinline read onlySTAMP_06:Int

1970-03-01 00:00:00

staticinline read onlySTAMP_07:Int

1967-01-01 00:00:00

staticinline read onlySTAMP_08:Int

1964-06-15 19:48:32

Inherited Variables

Defined by TestCase

currentTest:TestStatus

The current test status of the TestRunner.

Inherited Methods

Defined by TestCase

assertEquals<T> (expected:T, actual:T, ?c:PosInfos):Void

Succeeds if expected and actual are equal.

assertFalse (b:Bool, ?c:PosInfos):Void

Succeeds if b is false.

assertTrue (b:Bool, ?c:PosInfos):Void

Succeeds if b is true.

setup ():Void

Override this method to execute code before the test runs.

tearDown ():Void

Override this method to execute code after the test ran.