JSPM

  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q34825F
  • License MIT

Library handles time based parsing / operations. Untested. Based off of PHP's time system. Note: This library is out of date, and does not necessarily work. I recommend using os.time()

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@quenty/time) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    Time

    Library handles time based parsing / operations. Untested. Based off of PHP's time system. Note: This library is out of date, and does not necessarily work. I recommend using os.time()

    Installation

    npm install @quenty/time --save

    Usage

    Usage is designed to be simple.

    Time.getDaysMonthTable(year)

    Returns a Days in months table for the given year

    Time.getSecond(currentTime)

    Time.getMinute(currentTime)

    Time.getHour(currentTime)

    Time.getDay(currentTime)

    Time.getYear(currentTime)

    Time.getYearShort(currentTime)

    Time.getYearShortFormatted(currentTime)

    Time.getMonth(currentTime)

    Time.getFormattedMonth(currentTime)

    Time.getDayOfTheMonth(currentTime)

    Time.getFormattedDayOfTheMonth(currentTime)

    Time.getMonthName(currentTime)

    Time.getMonthNameShort(currentTime)

    Time.getJulianDate(currentTime)

    Time.getDayOfTheWeek(currentTime)

    Time.getDayOfTheWeekName(currentTime)

    Time.getDayOfTheWeekNameShort(currentTime)

    Time.getOrdinalOfNumber(number)

    Time.getDayOfTheMonthOrdinal(currentTime)

    Time.getFormattedSecond(currentTime)

    Time.getFormattedMinute(currentTime)

    Time.getRegularHour(currentTime)

    Time.getHourFormatted(currentTime)

    Time.getRegularHourFormatted(currentTime)

    Time.getamOrpm(currentTime)

    Time.getAMorPM(currentTime)

    Time.getMilitaryHour(currentTime)

    Time.isLeapYear(currentTime)

    Time.getDaysInMonth(currentTime)

    Time.getFormattedTime(format, currentTime)