Main Content

Date and Time Fundamentals
A talk by Matt Johnson at Desert Code Camp 2013.2
About the Talk
November 9, 2013 4:00 AM
Chandler - Gilbert Community College, Pecos Campus, 2626 E Pecos Road, Chandler, AZ 85225
Chandler - Gilbert Community College, Pecos Campus, 2626 E Pecos Road, Chandler, AZ 85225Managing dates and times properly is one of the most difficult things to get right in software. This is mostly due to us stupid humans and the how we have introduced nuance into our calendars and clocks. In this session, I will help you straighten it all out. We will cover general concepts such as UTC and GMT, daylight savings time, local time vs. instantaneous time, time zones and the different time zone databases, ISO8601 standards, important date-time gotchas, and more. We will dive deep into classes for managing time in the Microsoft .Net framework, including DateTime, DateTimeOffset and TimeZoneInfo. We will then take a brief look at NodaTime - a C# library aimed at replacing those classes. We will also get a quick look at the JavaScript Date object, and a few JavaScript date/time libraries including moment.js. Code samples will be in either C# or JavaScript, but much of the information is relevant to any modern software language or architecture.
Links: Website
comments powered by Disqus