5.0.5 • Published 3 years ago

@ff0000-ad-tech/ad-dates v5.0.5

Weekly downloads
2
License
MIT
Repository
github
Last release
3 years ago
RED Interactive Agency - Ad Technology

npm (tag) GitHub issues npm downloads

GitHub contributors GitHub commit-activity npm license PRs Welcome


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

  • .init()
  • .getNow()TzDate

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

5.0.5

3 years ago

5.0.2

3 years ago

5.0.1

4 years ago

5.0.0

4 years ago

4.1.3

6 years ago

4.1.2

6 years ago

4.1.1

7 years ago

4.1.0

7 years ago

4.0.1

7 years ago

4.0.0

7 years ago

3.1.7

7 years ago

3.1.6

7 years ago

3.1.5

7 years ago

3.1.4

7 years ago

3.1.3

7 years ago

3.1.2

7 years ago

3.1.1

7 years ago

3.1.0

7 years ago

3.0.2

7 years ago

3.0.1

7 years ago

3.0.0

7 years ago

2.1.1

7 years ago

2.1.0

7 years ago

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago