RED Interactive Agency - Ad Technology
ad-dates
A lightweight package for handling dates created for use in digital ads where file weight limits are strict.
API
DateFormatter
- .setLanguage()
- .addLanguage()
-
.getLabels() ⇒
TzDate
|Date
-
.getNumericSuffixFor() ⇒
String
-
.format() ⇒
String
DateManager
DateSchedule
- new DateSchedule(arg)
-
.target :
TzDate
-
.current :
object
-
.currentDate :
TzDate
-
.currentLabel :
String
-
.currentIndex :
Number
-
.next :
object
-
.nextDate :
TzDate
-
.nextLabel :
String
-
.nextIndex :
Number
-
.isLive :
Boolean
-
.isComplete :
Boolean
- .addDate(tzDate, label, callback)
- .print() ⇒
-
.getDates() ⇒
Array
DateUtils
-
.getTimeDifference() ⇒
Object
-
.adjust() ⇒
TzDate
|Date
-
.isPast(date, context) ⇒
boolean
RecurringSchedule
- new RecurringSchedule()
-
.currentSchedule :
object
-
.current :
object
-
.currentDate :
TzDate
-
.currentLabel :
String
- .print()
Timezone
-
.get() ⇒
string
TzDate
- new TzDate()
-
.outputTimezone :
object
|string
|number
-
.clone() ⇒
TzDate
-
.getHoursIn() ⇒
number
-
.format() ⇒
String
-
.getIn() ⇒
TzDate
-
.print() ⇒
string
-
.toFullDateTime() ⇒
string
-
.toSimpleDate() ⇒
string
-
.toDate() ⇒
string
-
.toDateTime() ⇒
string
-
.toSimpleDateTime() ⇒
string
-
.toTime() ⇒
string
-
.toSimpleTime() ⇒
string
-
.toMeridiem() ⇒
string
-
.toShortestTime() ⇒
string