8000 GitHub - vurpa/date-bin · GitHub
[go: up one dir, main page]

Skip to content
vurpaPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

date-bin

Postgres date_bin function in TypeScript.

Usage

import dateBin from './dateBin'

const interval = 5_400_000

const binned = dateBin(interval, new Date('2021-01-01 10:00:00'), new Date('2021-01-01 08:00:00'))

console.log(binned.toString()) // 09:30:00

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

0