Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support 17-minute dst change in 1895 #214

Open
spencermountain opened this issue Jun 30, 2020 · 3 comments
Open

support 17-minute dst change in 1895 #214

spencermountain opened this issue Jun 30, 2020 · 3 comments
Labels

Comments

@spencermountain
Copy link
Owner

let d = spacetime('june 2nd 1892')
d.every('year', 'june 2nd 1902').forEach((y) => {
  console.log(y.format('iso-short'))
})
/*
1893-01-01
1894-01-01
1894-12-31 //day shy
1896-12-31
1898-12-31
1900-12-31
1894-12-31
*/
@spencermountain
Copy link
Owner Author

this appears to be sensitive to current minute

let d = spacetime('1895-01-01') //.startOf('day')
d = d.minute(0)
console.log(d.format('')) //1894-12-31

@spencermountain
Copy link
Owner Author

closer to the issue:

let d = spacetime('1895-01-01').startOf('day')
console.log(d.format('nice-full')) 
//January 1st, 12:26am

@spencermountain spencermountain changed the title year 1895 walk-to issue support 17-minute dst change in 1895 Jul 17, 2020
@spencermountain
Copy link
Owner Author

found a 17-minute DST change. I think it may be the first DST change in the Americas.
image
https://www.timeanddate.com/time/change/canada/toronto?year=1895

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant