{"_id":"@art-suite/art-core-time","_rev":"6-9674d379d3c2db16c43198413107a8e3","name":"@art-suite/art-core-time","dist-tags":{"latest":"0.1.5"},"versions":{"0.1.0":{"name":"@art-suite/art-core-time","version":"0.1.0","author":{"name":"Shane Brinkman-Davis Delamore"},"license":"ISC","_id":"@art-suite/art-core-time@0.1.0","maintainers":[{"name":"shanebdavis","email":"shanebdavis@gmail.com"}],"homepage":"https://github.com/art-suite/art-suite-foundations","bugs":{"url":"https://github.com/art-suite/art-suite-foundations/issues"},"dist":{"shasum":"9a92a8b7e40a4cdb557a0ca7c7f3d156310c4307","tarball":"https://registry.npmjs.org/@art-suite/art-core-time/-/art-core-time-0.1.0.tgz","fileCount":27,"integrity":"sha512-h5P3pvfmdORPWtEnVqGbWUP1GGPlKJXfK+Ar76BbVEj+oBtTfkDocn5Cp2UE9ezf7AUnmEa/IrLDz7ZX5HXPMw==","signatures":[{"sig":"MEUCIAMH/2FV9zIDvl9PQAlGrEJWxQmpujfu+wGFhk1bd3lFAiEAojjd1O7HISh2o2RYidppBylULrathapfQ6BZkVRgyZ8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":40791},"jest":{"verbose":true,"testEnvironment":"node","collectCoverageFrom":["build/**/*.js","!build/test/**/*.js"],"testPathIgnorePatterns":["/node_modules/","<rootDir>/test"],"coveragePathIgnorePatterns":["/index.js$","/namespace.js$"]},"main":"./build","watch":{"build":{"quiet":false,"patterns":["source"],"extensions":["caf","coffee"]}},"gitHead":"607ee3570e8c2d04c3de47326c2428c0493857e8","scripts":{"nn":"nn build/* ","test":"jest","build":"rsync -av --exclude='*.caf' --exclude='*.coffee' ./source/ ./build/\ncoffee -m --output build --compile source &\nCOFFEE_PID=$!\ncaf -m -c source -o build --require coffee-script/register&\nCAF_PID=$!\nwait $COFFEE_PID || exit 1\nwait $CAF_PID || exit 1\nnpm run nn","clean":"rm -rf build/*","test-watch":"jest --watch","build-clean":"# BUILD CLEAN START\n#   - building into: build-temp\n#\nrm -rf ./__build-old__\nrsync -av --exclude='*.caf' --exclude='*.coffee' ./source/ ./build-temp/\ncoffee -m --output build-temp --compile source &\nCOFFEE_PID=$!\ncaf -m -c source -o build-temp --require coffee-script/register&\nCAF_PID=$!\nwait $COFFEE_PID || exit 1\nwait $CAF_PID || exit 1\nnpm run nn\n\nnn build-temp/*\n\n# BUILD CLEAN FINIALIZING\n#  - replace old build in:   build\n#  - with new build from:    build-temp\n#\nmv build __build-old__\nmv build-temp build\nrm -rf ./__build-old__","build-watch":"nodemon -e js,ts,jsx,tsx,caf,coffee,json -w \"source/**\" -x npm run build"},"_npmUser":{"name":"shanebdavis","email":"shanebdavis@gmail.com"},"repository":{"url":"git+https://github.com/art-suite/art-suite-foundations.git","type":"git"},"_npmVersion":"10.9.0","description":"The Standard Library for JavaScript that aught to be.","directories":{},"_nodeVersion":"22.12.0","dependencies":{"dateformat":"^4.5.1","caffeine-script-runtime":"^1.14.0","neptune-namespaces-runtime":"^3.2.14"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^7.2.0","art-testbench":"^3.2.17","art-build-configurator":"^1.30.4","@art-suite/standard-package-builder":"^1.2.7"},"_npmOperationalInternal":{"tmp":"tmp/art-core-time_0.1.0_1746741715925_0.5136448245472129","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@art-suite/art-core-time","version":"0.1.1","author":{"name":"Shane Brinkman-Davis Delamore"},"license":"ISC","_id":"@art-suite/art-core-time@0.1.1","maintainers":[{"name":"shanebdavis","email":"shanebdavis@gmail.com"}],"homepage":"https://github.com/art-suite/art-suite-foundations","bugs":{"url":"https://github.com/art-suite/art-suite-foundations/issues"},"dist":{"shasum":"bc8a8e488ebb65a402ac3b4a18c71d5b8c3c96bb","tarball":"https://registry.npmjs.org/@art-suite/art-core-time/-/art-core-time-0.1.1.tgz","fileCount":28,"integrity":"sha512-OKrzB3JZtfC8nGL/45yPh6unjSLHIgagZsd8NzYWYahg2/FxcZH/DK86G9hY7sU/PTs21dQqg6CHPPolfASaJg==","signatures":[{"sig":"MEYCIQDqH/w/HU767JhH5q4Fock7mmIRoiQ4tZDicmzSe581TgIhAKDT+CarhJ2U/vzGK8GqxiEs5YXA1pPwBTH7gb3/B8xY","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":41009},"jest":{"verbose":true,"testEnvironment":"node","collectCoverageFrom":["build/**/*.js","!build/test/**/*.js"],"testPathIgnorePatterns":["/node_modules/","<rootDir>/test"],"coveragePathIgnorePatterns":["/index.js$","/namespace.js$"]},"main":"./build","watch":{"build":{"quiet":false,"patterns":["source"],"extensions":["caf","coffee"]}},"gitHead":"c94ae44e84ae844b6d92f988712934873146a838","scripts":{"nn":"nn build/* ","test":"jest","build":"rsync -av --exclude='*.caf' --exclude='*.coffee' ./source/ ./build/\ncoffee -m --output build --compile source &\nCOFFEE_PID=$!\ncaf -m -c source -o build --require coffee-script/register&\nCAF_PID=$!\nwait $COFFEE_PID || exit 1\nwait $CAF_PID || exit 1\nnpm run nn","clean":"rm -rf build/*","test-watch":"jest --watch","build-clean":"# BUILD CLEAN START\n#   - building into: build-temp\n#\nrm -rf ./__build-old__\nrsync -av --exclude='*.caf' --exclude='*.coffee' ./source/ ./build-temp/\ncoffee -m --output build-temp --compile source &\nCOFFEE_PID=$!\ncaf -m -c source -o build-temp --require coffee-script/register&\nCAF_PID=$!\nwait $COFFEE_PID || exit 1\nwait $CAF_PID || exit 1\nnpm run nn\n\nnn build-temp/*\n\n# BUILD CLEAN FINIALIZING\n#  - replace old build in:   build\n#  - with new build from:    build-temp\n#\nmv build __build-old__\nmv build-temp build\nrm -rf ./__build-old__","build-watch":"nodemon -e js,ts,jsx,tsx,caf,coffee,json -w \"source/**\" -x npm run build"},"_npmUser":{"name":"shanebdavis","email":"shanebdavis@gmail.com"},"repository":{"url":"git+https://github.com/art-suite/art-suite-foundations.git","type":"git"},"_npmVersion":"10.9.0","description":"The Standard Library for JavaScript that aught to be.","directories":{},"_nodeVersion":"22.12.0","dependencies":{"dateformat":"^4.5.1","caffeine-script-runtime":"^1.14.0","@art-suite/art-core-math":"^0.1.0","@art-suite/art-core-types":"^0.2.1","@art-suite/art-core-arrays":"^0.1.0","neptune-namespaces-runtime":"^3.2.14","@art-suite/art-core-strings":"^0.1.0"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^7.2.0","art-testbench":"^3.2.17","art-build-configurator":"^1.30.4","@art-suite/standard-package-builder":"^1.2.7"},"_npmOperationalInternal":{"tmp":"tmp/art-core-time_0.1.1_1746779862423_0.3023385329424464","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@art-suite/art-core-time","version":"0.1.2","author":{"name":"Shane Brinkman-Davis Delamore"},"license":"ISC","_id":"@art-suite/art-core-time@0.1.2","maintainers":[{"name":"shanebdavis","email":"shanebdavis@gmail.com"}],"homepage":"https://github.com/art-suite/art-suite-foundations","bugs":{"url":"https://github.com/art-suite/art-suite-foundations/issues"},"dist":{"shasum":"530172126435d9e5163aba4b0932f06edd84cfd8","tarball":"https://registry.npmjs.org/@art-suite/art-core-time/-/art-core-time-0.1.2.tgz","fileCount":30,"integrity":"sha512-wQ181DeRAvm/zxOcIGS/AUdwOiF8+p9ibbHTqZW5zfeqMPsnYvIgEkvqJunr5rp2sptI0JUCD+gpjE3ulUSkWA==","signatures":[{"sig":"MEYCIQCGAXB5A/phXOxf0jfiPIdi1GIv7tCbd7cjtXoH3eWjugIhAMoLuclFHPENNMpkg08KCJhYkAZc985Q6CpJj6nzMZfh","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":41549},"jest":{"verbose":true,"testEnvironment":"node","collectCoverageFrom":["build/**/*.js","!build/test/**/*.js"],"testPathIgnorePatterns":["/node_modules/","<rootDir>/test"],"coveragePathIgnorePatterns":["/index.js$","/namespace.js$"]},"main":"./build","watch":{"build":{"quiet":false,"patterns":["source"],"extensions":["caf","coffee"]}},"exports":{".":{"import":"./index.mjs","require":"./build/index.js"}},"gitHead":"bedd81435373af9778e14146163a6077d4fdcc81","scripts":{"nn":"nn build/* ","test":"jest","build":"rsync -av --exclude='*.caf' --exclude='*.coffee' ./source/ ./build/\ncoffee -m --output build --compile source &\nCOFFEE_PID=$!\ncaf -m -c source -o build --require coffee-script/register&\nCAF_PID=$!\nwait $COFFEE_PID || exit 1\nwait $CAF_PID || exit 1\nnpm run nn","clean":"rm -rf build/*","test-watch":"jest --watch","build-clean":"# BUILD CLEAN START\n#   - building into: build-temp\n#\nrm -rf ./__build-old__\nrsync -av --exclude='*.caf' --exclude='*.coffee' ./source/ ./build-temp/\ncoffee -m --output build-temp --compile source &\nCOFFEE_PID=$!\ncaf -m -c source -o build-temp --require coffee-script/register&\nCAF_PID=$!\nwait $COFFEE_PID || exit 1\nwait $CAF_PID || exit 1\nnpm run nn\n\nnn build-temp/*\n\n# BUILD CLEAN FINIALIZING\n#  - replace old build in:   build\n#  - with new build from:    build-temp\n#\nmv build __build-old__\nmv build-temp build\nrm -rf ./__build-old__","build-watch":"nodemon -e js,ts,jsx,tsx,caf,coffee,json -w \"source/**\" -x npm run build"},"_npmUser":{"name":"shanebdavis","email":"shanebdavis@gmail.com"},"repository":{"url":"git+https://github.com/art-suite/art-suite-foundations.git","type":"git"},"_npmVersion":"10.9.0","description":"The Standard Library for JavaScript that aught to be.","directories":{},"_nodeVersion":"22.12.0","dependencies":{"dateformat":"^4.5.1","caffeine-script-runtime":"^1.14.0","@art-suite/art-core-math":"^0.1.1","@art-suite/art-core-types":"^0.2.2","@art-suite/art-core-arrays":"^0.1.1","neptune-namespaces-runtime":"^3.2.14","@art-suite/art-core-strings":"^0.1.1"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^7.2.0","art-testbench":"^3.2.17","art-build-configurator":"^1.30.4","@art-suite/standard-package-builder":"^1.2.7"},"_npmOperationalInternal":{"tmp":"tmp/art-core-time_0.1.2_1746783863759_0.46380870175056677","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@art-suite/art-core-time","version":"0.1.3","author":{"name":"Shane Brinkman-Davis Delamore"},"license":"ISC","_id":"@art-suite/art-core-time@0.1.3","maintainers":[{"name":"shanebdavis","email":"shanebdavis@gmail.com"}],"homepage":"https://github.com/art-suite/art-suite-foundations","bugs":{"url":"https://github.com/art-suite/art-suite-foundations/issues"},"dist":{"shasum":"6abb935e77fa7a7b31a24a75b4aeb28502332bbc","tarball":"https://registry.npmjs.org/@art-suite/art-core-time/-/art-core-time-0.1.3.tgz","fileCount":30,"integrity":"sha512-8AEQxlm7o9I2S4civIjuUu0I5fD+gM1k2pAeFvXmVVcZb2UHQqPIwY+sPkE0LXVD3WrQcPWSLBRdytMhdCTArw==","signatures":[{"sig":"MEUCIQDuWkt4QILGTJEomB/oa89dfOa1mN1993OyAibvg6EizAIgS7YYLlzUtEIWBFC13RK23kTVDp6AZvKJxjwkF8fTLKo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":41549},"jest":{"verbose":true,"testEnvironment":"node","collectCoverageFrom":["build/**/*.js","!build/test/**/*.js"],"testPathIgnorePatterns":["/node_modules/","<rootDir>/test"],"coveragePathIgnorePatterns":["/index.js$","/namespace.js$"]},"main":"./build","watch":{"build":{"quiet":false,"patterns":["source"],"extensions":["caf","coffee"]}},"exports":{".":{"import":"./index.mjs","require":"./build/index.js"}},"gitHead":"a94165479e2a1bce1798e54eabcb679c47599240","scripts":{"nn":"nn build/* ","test":"jest","build":"rsync -av --exclude='*.caf' --exclude='*.coffee' ./source/ ./build/\ncoffee -m --output build --compile source &\nCOFFEE_PID=$!\ncaf -m -c source -o build --require coffee-script/register&\nCAF_PID=$!\nwait $COFFEE_PID || exit 1\nwait $CAF_PID || exit 1\nnpm run nn","clean":"rm -rf build/*","test-watch":"jest --watch","build-clean":"# BUILD CLEAN START\n#   - building into: build-temp\n#\nrm -rf ./__build-old__\nrsync -av --exclude='*.caf' --exclude='*.coffee' ./source/ ./build-temp/\ncoffee -m --output build-temp --compile source &\nCOFFEE_PID=$!\ncaf -m -c source -o build-temp --require coffee-script/register&\nCAF_PID=$!\nwait $COFFEE_PID || exit 1\nwait $CAF_PID || exit 1\nnpm run nn\n\nnn build-temp/*\n\n# BUILD CLEAN FINIALIZING\n#  - replace old build in:   build\n#  - with new build from:    build-temp\n#\nmv build __build-old__\nmv build-temp build\nrm -rf ./__build-old__","build-watch":"nodemon -e js,ts,jsx,tsx,caf,coffee,json -w \"source/**\" -x npm run build"},"_npmUser":{"name":"shanebdavis","email":"shanebdavis@gmail.com"},"repository":{"url":"git+https://github.com/art-suite/art-suite-foundations.git","type":"git"},"_npmVersion":"10.9.0","description":"The Standard Library for JavaScript that aught to be.","directories":{},"_nodeVersion":"22.12.0","dependencies":{"dateformat":"^4.5.1","caffeine-script-runtime":"^1.14.0","@art-suite/art-core-math":"^0.1.1","@art-suite/art-core-types":"^0.3.0","@art-suite/art-core-arrays":"^0.1.1","neptune-namespaces-runtime":"^3.2.14","@art-suite/art-core-strings":"^0.1.1"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^7.2.0","art-testbench":"^3.2.17","art-build-configurator":"^1.30.4","@art-suite/standard-package-builder":"^1.2.7"},"_npmOperationalInternal":{"tmp":"tmp/art-core-time_0.1.3_1746786913693_0.7816217275122952","host":"s3://npm-registry-packages-npm-production"}},"0.1.4":{"name":"@art-suite/art-core-time","version":"0.1.4","author":{"name":"Shane Brinkman-Davis Delamore"},"license":"ISC","_id":"@art-suite/art-core-time@0.1.4","maintainers":[{"name":"shanebdavis","email":"shanebdavis@gmail.com"}],"homepage":"https://github.com/art-suite/art-suite-foundations","bugs":{"url":"https://github.com/art-suite/art-suite-foundations/issues"},"dist":{"shasum":"b0d676b9149e3112d8dd00ac1f549c471d234e3e","tarball":"https://registry.npmjs.org/@art-suite/art-core-time/-/art-core-time-0.1.4.tgz","fileCount":30,"integrity":"sha512-iNnl9yC7F6+BZ0aMT6pVoD4iiYin3IagCK6hDBOsrfAy6nSWq2OCYvG9Hrebr+1CfnKGRY7Z8GFF7Wbv6YUm2g==","signatures":[{"sig":"MEQCIFaa8R4nK4QINh9CjNMgSzj2TEGhut14jJn/3XIJaNw4AiByM3O5xZExyPcYg5aCqETX+pOwutUTvHKqVapA6WjweQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":41580},"jest":{"verbose":true,"testEnvironment":"node","collectCoverageFrom":["build/**/*.js","!build/test/**/*.js"],"testPathIgnorePatterns":["/node_modules/","<rootDir>/test"],"coveragePathIgnorePatterns":["/index.js$","/namespace.js$"]},"main":"./build","watch":{"build":{"quiet":false,"patterns":["source"],"extensions":["caf","coffee"]}},"exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./build/index.js"}},"gitHead":"a94165479e2a1bce1798e54eabcb679c47599240","scripts":{"nn":"nn build/* ","test":"jest","build":"rsync -av --exclude='*.caf' --exclude='*.coffee' ./source/ ./build/\ncoffee -m --output build --compile source &\nCOFFEE_PID=$!\ncaf -m -c source -o build --require coffee-script/register&\nCAF_PID=$!\nwait $COFFEE_PID || exit 1\nwait $CAF_PID || exit 1\nnpm run nn","clean":"rm -rf build/*","test-watch":"jest --watch","build-clean":"# BUILD CLEAN START\n#   - building into: build-temp\n#\nrm -rf ./__build-old__\nrsync -av --exclude='*.caf' --exclude='*.coffee' ./source/ ./build-temp/\ncoffee -m --output build-temp --compile source &\nCOFFEE_PID=$!\ncaf -m -c source -o build-temp --require coffee-script/register&\nCAF_PID=$!\nwait $COFFEE_PID || exit 1\nwait $CAF_PID || exit 1\nnpm run nn\n\nnn build-temp/*\n\n# BUILD CLEAN FINIALIZING\n#  - replace old build in:   build\n#  - with new build from:    build-temp\n#\nmv build __build-old__\nmv build-temp build\nrm -rf ./__build-old__","build-watch":"nodemon -e js,ts,jsx,tsx,caf,coffee,json -w \"source/**\" -x npm run build"},"_npmUser":{"name":"shanebdavis","email":"shanebdavis@gmail.com"},"repository":{"url":"git+https://github.com/art-suite/art-suite-foundations.git","type":"git"},"_npmVersion":"10.9.0","description":"The Standard Library for JavaScript that aught to be.","directories":{},"_nodeVersion":"22.12.0","dependencies":{"dateformat":"^4.5.1","caffeine-script-runtime":"^1.14.0","@art-suite/art-core-math":"^0.1.3","@art-suite/art-core-types":"^0.3.2","@art-suite/art-core-arrays":"^0.1.3","neptune-namespaces-runtime":"^3.2.14","@art-suite/art-core-strings":"^0.1.3"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^7.2.0","art-testbench":"^3.2.17","art-build-configurator":"^1.30.4","@art-suite/standard-package-builder":"^1.2.7"},"_npmOperationalInternal":{"tmp":"tmp/art-core-time_0.1.4_1746787422522_0.40698307797263866","host":"s3://npm-registry-packages-npm-production"}},"0.1.5":{"author":{"name":"Shane Brinkman-Davis Delamore"},"bugs":{"url":"https://github.com/art-suite/art-suite-foundations/issues"},"dependencies":{"@art-suite/art-core-arrays":"^0.1.1","@art-suite/art-core-math":"^0.1.4","@art-suite/art-core-strings":"^0.1.4","@art-suite/art-core-types":"^0.3.3","caffeine-script-runtime":"^1.14.0","dateformat":"^4.5.1","neptune-namespaces-runtime":"^3.2.15"},"description":"The Standard Library for JavaScript that aught to be.","devDependencies":{"@art-suite/standard-package-builder":"^1.2.8","art-build-configurator":"^1.30.5","art-testbench":"^3.2.18","mocha":"^7.2.0"},"exports":{".":{"import":"./index.mjs","require":"./build/index.js","types":"./index.d.ts"}},"homepage":"https://github.com/art-suite/art-suite-foundations","jest":{"collectCoverageFrom":["build/**/*.js","!build/test/**/*.js"],"coveragePathIgnorePatterns":["/index.js$","/namespace.js$"],"testEnvironment":"node","testPathIgnorePatterns":["/node_modules/","<rootDir>/test"],"verbose":true},"license":"ISC","main":"./build","name":"@art-suite/art-core-time","repository":{"type":"git","url":"git+https://github.com/art-suite/art-suite-foundations.git"},"scripts":{"build":"rsync -av --exclude='*.caf' --exclude='*.coffee' ./source/ ./build/\ncoffee -m --output build --compile source &\nCOFFEE_PID=$!\ncaf -m -c source -o build --require coffee-script/register&\nCAF_PID=$!\nwait $COFFEE_PID || exit 1\nwait $CAF_PID || exit 1\nnpm run nn","build-clean":"# BUILD CLEAN START\n#   - building into: build-temp\n#\nrm -rf ./__build-old__\nrsync -av --exclude='*.caf' --exclude='*.coffee' ./source/ ./build-temp/\ncoffee -m --output build-temp --compile source &\nCOFFEE_PID=$!\ncaf -m -c source -o build-temp --require coffee-script/register&\nCAF_PID=$!\nwait $COFFEE_PID || exit 1\nwait $CAF_PID || exit 1\nnpm run nn\n\nnn build-temp/*\n\n# BUILD CLEAN FINIALIZING\n#  - replace old build in:   build\n#  - with new build from:    build-temp\n#\nmv build __build-old__\nmv build-temp build\nrm -rf ./__build-old__","build-watch":"nodemon -e js,ts,jsx,tsx,caf,coffee,json -w \"source/**\" -x npm run build","clean":"rm -rf build/*","nn":"nn build/* ","test":"jest","test-watch":"jest --watch"},"version":"0.1.5","watch":{"build":{"extensions":["caf","coffee"],"patterns":["source"],"quiet":false}},"gitHead":"3140bf828cabdf379d7c25fc877c26c1608c2409","_id":"@art-suite/art-core-time@0.1.5","_nodeVersion":"24.10.0","_npmVersion":"11.6.1","dist":{"integrity":"sha512-eVKMkAkHPbfQDobUWc2lihCkJdGFnP+ZQ7WEdqnnssUxm935SZwn4QFyouF6DgQYONmv7MecrP21rS1kAOqrNg==","shasum":"9d856d653dc1c45d43f1ec169017e996ffdff2c1","tarball":"https://registry.npmjs.org/@art-suite/art-core-time/-/art-core-time-0.1.5.tgz","fileCount":30,"unpackedSize":41580,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCICn/4k+wmNe+iRZ7K5XEaHVdx2wemImuE/yWEeqdnTs0AiEA+cabYtqv0p9jBriAUA9mWUdLPOosXs4HhDNiuz5+8r0="}]},"_npmUser":{"name":"shanebdavis","email":"shanebdavis@gmail.com"},"directories":{},"maintainers":[{"name":"shanebdavis","email":"shanebdavis@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/art-core-time_0.1.5_1762507601359_0.45872576235109497"},"_hasShrinkwrap":false}},"time":{"created":"2025-05-08T22:01:55.808Z","modified":"2025-11-07T09:26:41.784Z","0.1.0":"2025-05-08T22:01:56.155Z","0.1.1":"2025-05-09T08:37:42.611Z","0.1.2":"2025-05-09T09:44:23.994Z","0.1.3":"2025-05-09T10:35:13.857Z","0.1.4":"2025-05-09T10:43:42.690Z","0.1.5":"2025-11-07T09:26:41.562Z"},"bugs":{"url":"https://github.com/art-suite/art-suite-foundations/issues"},"author":{"name":"Shane Brinkman-Davis Delamore"},"license":"ISC","homepage":"https://github.com/art-suite/art-suite-foundations","repository":{"type":"git","url":"git+https://github.com/art-suite/art-suite-foundations.git"},"description":"The Standard Library for JavaScript that aught to be.","maintainers":[{"name":"shanebdavis","email":"shanebdavis@gmail.com"}],"readme":"# @art-suite/art-core-time\n\nA comprehensive JavaScript library for time and date manipulation, formatting, and calculations. Provides utilities for easy conversion between units, finding specific date boundaries, and generating human-readable time strings.\n\n## Features\n\n- Flexible date and time formatting (`formatDate`).\n- Easy conversion to milliseconds, seconds, and Date objects.\n- Functions to find the start of various time periods (hour, day, week, month, year), with locale support.\n- Human-readable duration and time delta strings (`humanDurationString`, `humanTimeDeltaString`, `timeAgo`).\n- A variety of \"nice\" date and time string formatters.\n- Utilities for calculating date age and accessing current time components.\n- TypeScript definitions for complete type safety.\n\n## Installation\n\n```bash\nnpm install @art-suite/art-core-time\n```\n\n## API Overview\n\n### Formatting\n\n- **`formatDate(date?: Date | number | string, formatString?: string): string`**: Formats a date according to a given format string.\n- **`humanDurationString(durationInSeconds: number, options?: object): string`**: Converts a duration in seconds to a human-readable string (e.g., \"1 hour 30 minutes\").\n- **`humanTimeDeltaString(fromTime: Date | number, toTime?: Date | number, options?: object): string`**: Returns a human-readable string representing the time difference between two dates.\n- **`niceFullDateString(date?: Date | number | string): string`**: Formats a date into a nice, full string (e.g., \"January 1, 2023\").\n- **`niceMonthYear(date?: Date | number | string): string`**: Formats a date into a \"Month Year\" string (e.g., \"January 2023\").\n- **`niceDateString(date?: Date | number | string): string`**: Formats a date into a nice, concise date string.\n- **`niceTimeDetailsString(date?: Date | number | string): string`**: Formats a date into a string with detailed time information.\n- **`timeAgo(date: Date | number | string, now?: Date | number): string`**: Returns a string representing how long ago a date was (e.g., \"5 minutes ago\").\n\n### Conversions\n\n- **`toMilliseconds(value: any, unit?: string): number`**: Converts a time value from various units (like seconds, minutes, custom strings) to milliseconds.\n- **`toSeconds(value: any, unit?: string): number`**: Converts a time value to seconds.\n- **`toDate(value?: Date | number | string): Date`**: Converts a value (timestamp, string) to a Date object.\n\n### Date Boundary Calculations (Default/UTC)\n\n- **`firstOfHour(date?: Date | number | string): Date`**: Returns a Date object set to the beginning of the hour for the given date.\n- **`firstOfDay(date?: Date | number | string): Date`**: Returns a Date object set to the beginning of the day (midnight).\n- **`firstOfWeek(date?: Date | number | string, firstDayOfWeek?: number): Date`**: Returns a Date object set to the beginning of the week.\n- **`firstOfMonth(date?: Date | number | string): Date`**: Returns a Date object set to the beginning of the month.\n- **`firstOfYear(date?: Date | number | string): Date`**: Returns a Date object set to the beginning of the year.\n\n### Date Boundary Calculations (Locale-Aware)\n\n- **`firstOfDayLocale(date?: Date | number | string): Date`**: Beginning of the day, respecting local timezone.\n- **`firstOfWeekLocale(date?: Date | number | string, firstDayOfWeek?: number): Date`**: Beginning of the week, respecting local conventions.\n- **`firstOfMonthLocale(date?: Date | number | string): Date`**: Beginning of the month, respecting local timezone.\n- **`firstOfYearLocale(date?: Date | number | string): Date`**: Beginning of the year, respecting local timezone.\n\n### Time Constants & Names\n\n- **`normalizedTimeNames: Record<string, string>`**: A map of common time unit names to a normalized form (e.g., `{ second: \"s\", minute: \"m\" }`).\n- **`longTimeNames: Record<string, string>`**: A map of normalized time unit names to their long forms (e.g., `{ s: \"second\", m: \"minute\" }`).\n- **`secondsPer: Record<string, number>`**: A map defining the number of seconds per time unit (e.g., `{ minute: 60, hour: 3600 }`).\n\n### Other Time Utilities\n\n- **`dateAgeInSeconds(date: Date | number | string): number`**: Calculates the age of a date in seconds from now.\n- **`time(): number`**: Returns the current time (typically as a Unix timestamp in milliseconds or seconds - to be clarified by implementation).\n- **`currentSecond(): number`**: Returns the current second of the minute (0-59) or potentially seconds since epoch.\n\n## Examples\n\n### Formatting Dates\n\n```typescript\nimport {\n  formatDate,\n  niceFullDateString,\n  timeAgo,\n} from \"@art-suite/art-core-time\";\n\nconst now = new Date();\nconsole.log(formatDate(now, \"YYYY-MM-DD HH:mm:ss\")); // e.g., \"2023-10-27 14:30:00\"\nconsole.log(niceFullDateString(now)); // e.g., \"October 27, 2023\"\n\nconst fiveMinutesAgo = new Date(Date.now() - 5 * 60 * 1000);\nconsole.log(timeAgo(fiveMinutesAgo)); // \"5 minutes ago\"\n```\n\n### Time Conversions\n\n```typescript\nimport { toMilliseconds, toDate } from \"@art-suite/art-core-time\";\n\nconsole.log(toMilliseconds(\"5m\")); // 300000 (5 minutes in milliseconds)\nconsole.log(toMilliseconds(1, \"hour\")); // 3600000\n\nconst timestamp = 1672531200000; // Jan 1, 2023 UTC\nconsole.log(toDate(timestamp).toUTCString()); // \"Sun, 01 Jan 2023 00:00:00 GMT\"\n```\n\n### Date Boundaries\n\n```typescript\nimport { firstOfDay, firstOfMonthLocale } from \"@art-suite/art-core-time\";\n\nconst date = new Date(\"2023-10-27T15:45:00Z\");\nconsole.log(firstOfDay(date).toISOString()); // \"2023-10-27T00:00:00.000Z\"\nconsole.log(firstOfMonthLocale(date).toString()); // Shows beginning of Oct in local time\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}