GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - NeaByteLab/Daytime: Modern date library with chainable methods and rich formatting options.

BranchesTags
Open more actions menu

Latest commit

 

History

13 Commits
13 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
docs
docs
 
 
src
src
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
build.config.ts
build.config.ts
 
 
deno.json
deno.json
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 

Repository files navigation

Daytime Module type: CJS+ESM npm version JSR Node.js CI

Modern date library with chainable methods and rich formatting options.

The library is available as CJS, ESM, and JSR packages. You can install it via npm, Deno, or CDN.

Installation

Ready to get started? Follow our step-by-step installation guide to set up Daytime.

npm install @neabyte/daytime

Example Usage

import daytime from '@neabyte/daytime'

const date = daytime('2077-01-01')
console.log(date.format('YYYY-MM-DD Do dddd'))
// "2077-01-01 1st Friday"

console.log(date.add(1, 'year').format('dddd, DD-MM-YYYY [at] HH:mm:ss'))
// "Saturday, 01-01-2078 [at] 07:00:00"

console.log(date.getDaysInMonth().map(day => day.format('YYYY-MM-DD Do dddd')))
// [
//   '2077-01-01 1st Friday',
//   '2077-01-02 2nd Saturday',
//   '2077-01-03 3rd Sunday',
//   '2077-01-04 4th Monday',
//   '2077-01-05 5th Tuesday',
//   '2077-01-06 6th Wednesday',
//   '2077-01-07 7th Thursday',
//   '2077-01-08 8th Friday',
//   '2077-01-09 9th Saturday',
//   ...
// ]

Documentation

See the official documentation for more details about the library.

License

This project is licensed under the MIT license. See the LICENSE file for more info.

About

Modern date library with chainable methods and rich formatting options.

docs-daytime.neabyte.com

Topics

calendarchainabledatedate-comparisondate-formattingdate-librarydate-manipulationdate-utilitiesdate-validationdatetimedenoimmutableiso-weekjavascriptjsrnodejsrelative-timetime-manipulationtimezonetypescript

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.