Skip to content

Looveh/smart-ts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

smart-ts

Convert between traditional YYYY-MM-DD timestamps and smart WWyu timestamps.

Motivation

https://niclas-nilsson.com/blog/5e7-an-alternative-date-notation

Usage

import { transform } from "smart-ts";

transform("2023-01-01") => "0d7"
transform("2023-01-28") => "4d6"
transform("2023-12-25") => "52d1"
transform("2024-01-01") => "1e1"
transform("0d7") => "2023-01-01"
transform("4d6") => "2023-01-28"
transform("52d1") => "2023-12-25"
transform("1e1") => "2024-01-01"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published