addDaysToDate ( date: DateTime, days: int) { DateTime }

Parameters
Name Type Description
date DateTime
days int

addHoursToDate ( date: DateTime, hours: int) { DateTime }

Parameters
Name Type Description
date DateTime
hours int

createDate ( milliSeconds: long) { DateTime }

Parameters
Name Type Description
milliSeconds long

diff ( date1: Object, date2: Object, unit: String) { long }

Parameters
Name Type Description
date1 Object
date2 Object
unit String

diff ( date1: Object, date2: Object) { long }

Parameters
Name Type Description
date1 Object
date2 Object

getDate ( timezone: String) { DateTime }

Parameters
Name Type Description
timezone String

getDate ( ) { DateTime }

getDayInMonth ( date: DateTime) { int }

Parameters
Name Type Description
date DateTime

getDayInMonth ( ) { int }

getDayInWeek ( date: DateTime) { int }

Parameters
Name Type Description
date DateTime

getDayInWeek ( ) { int }

getHour ( date: DateTime) { int }

Parameters
Name Type Description
date DateTime

getHour ( ) { int }

getLastMondayFromDate ( date: DateTime) { DateTime }

Parameters
Name Type Description
date DateTime

getMinute ( date: DateTime) { int }

Parameters
Name Type Description
date DateTime

getMinute ( ) { int }

getMonth ( date: DateTime) { int }

Parameters
Name Type Description
date DateTime

getMonth ( ) { int }

getSecond ( date: DateTime) { int }

Parameters
Name Type Description
date DateTime

getSecond ( ) { int }

getToday ( ) { DateTime }

getWeek ( date: DateTime) { int }

Parameters
Name Type Description
date DateTime

getWeek ( ) { int }

getYear ( date: DateTime) { int }

Parameters
Name Type Description
date DateTime

getYear ( ) { int }

newDate ( dateObj: Object, timezone: String) { DateTime }

Parameters
Name Type Description
dateObj Object
timezone String

now ( ) { DateTime }

toMidnight ( date: DateTime) { DateTime }

Parameters
Name Type Description
date DateTime