Every so often, I'll come across a StackOverflow question or other Internet posting that says something like: How do I get the epoch time? Or maybe: I have an epoch time and I want to get the next day's epoch time. Or even better: I changed| Code of Matt
Do you know the difference between these two lines? var d1 = new Date("2015/06/17"); var d2 = new Date("2015-06-17"); How about these? var d1 = new Date("2015/06/17 00:00:00"); var d2 = new Date("2015-06-17 00:00:00"); Or these? var d1 = new Date("2015/06/| Code of Matt
I was recently interviewed by Scott Hanselman for his Hanselminutes podcast. If you're interested in time, especially with .NET, I hope you will listen! Check it out in show #485 [http://www.hanselminutes.com/485/the-problem-with-datetime-nodatime-with-matt-johnson] .| Code of Matt
The following is a list of many bugs caught on or near leap day, February 29th, 2020. Each link below references the issue with supporting details where available.| Code of Matt
Today, I had the pleasure of speaking at CodeMash 2017. The slides for my talk, entitled "How to Have the Best Dates Ever!" are available here [https://www.dropbox.com/s/78gcn84zubbcvgz/Best%20Dates%20Ever.pdf?dl=1]. I also recorded the presentation, and you can watch it on YouTube| Code of Matt
The following is a list of all the bugs caught during leap day, February 29th, 2016. Each link below references the issue with supporting details where available. If you're looking for information of how to avoid leap year bugs, or examples of disastrous leap year bugs from previous years, please| Code of Matt
"Well, Richard..." "Yeah Buddy," "Guess what time it is?" "... I ... Don't ... Know !!!" "It's time to... uh.. to.. Hey, what the hell time is it anyway?!! What's going on!" "I used to know, or I used to think I knew. I just don't know any more!" "I don't know either." MISSION| Code of Matt
Back in 2016, I wrote about leap year bugs. Since another leap year is almost here, I figure it's time to revisit the subject. I've gathered quite a bit of knowledge in this area since then. Hunting down leap year bugs has actually been part of my full-time job for| Code of Matt
If you haven't realized it yet, 2016 is a leap year. For most people, this may just be an interesting oddity. An extra day to work or play. But for developers, the leap year can cause significant pain. It's January 1st as I'm writing this. If you are just now| Code of Matt