Neti Pot Manufacturer

    @cityssm/modern-julian-date
    TypeScript icon, indicating that this package has built-in type declarations

    0.1.0 • Public • Published

    Modern Julian Date

    npm (scoped) Code Climate maintainability Code Climate coverage Snyk Vulnerabilities for GitHub Repo

    Converts a regular JavaScript date to the modern Julian date format YYYYDDD, commonly seen in banking applications.

    Getting Started

    npm install @cityssm/modern-julian-date

    Usage

    import { toModernJulianDate } from "@cityssm/modern-julian-date";
    
    console.log( toModernJulianDate(new Date(2022, 1 - 1, 1)) );
    // => 2022001
    
    console.log( toModernJulianDate(new Date(2022, 12 - 1, 31)) );
    // => 2022365
    
    console.log( toModernJulianDate(new Date(2020, 12 - 1, 31)) );
    // => 2020366

    Install

    npm i @cityssm/modern-julian-date

    DownloadsWeekly Downloads

    6

    Version

    0.1.0

    License

    MIT

    Unpacked Size

    4.76 kB

    Total Files

    6

    Last publish

    Collaborators

    • dgowans