Are you over 18 and want to see adult content?
More Annotations
A complete backup of fanage-mno.blogspot.com
Are you over 18 and want to see adult content?
A complete backup of bronwynritchie.com
Are you over 18 and want to see adult content?
A complete backup of radiantglow.co.uk
Are you over 18 and want to see adult content?
A complete backup of dekabreestka.livejournal.com
Are you over 18 and want to see adult content?
A complete backup of irelandstolemyheart.com
Are you over 18 and want to see adult content?
A complete backup of charlottefbc.org
Are you over 18 and want to see adult content?
Favourite Annotations
A complete backup of gwen-howard-644b.squarespace.com
Are you over 18 and want to see adult content?
A complete backup of simplelivingcreativelearning.com
Are you over 18 and want to see adult content?
A complete backup of adaddanuarta.blogspot.com
Are you over 18 and want to see adult content?
A complete backup of hunksofbeef.tumblr.com
Are you over 18 and want to see adult content?
A complete backup of jornalmeuemprego.com.br
Are you over 18 and want to see adult content?
Text
ALL THINGS IN TIME
All Things in Time. Let's face it, we live in a world that is governed by time. We describe all kinds of things with time at different scales. At one end of the scale we might measure the creation of the universe in terms of billions or trillions of years. At the other end of the scale we might measure the movement of electrons in nanoseconds THE MAGIC F4 KEY IN MICROSOFT OFFICE THE F4 KEY. So what does this magic key do? It simply repeats the last command on whatever the current context is. In my case, I needed to hide multiple wedges in a pie chart. So I clicked the first wedge and navigated through the point-and-click menus to HANDLING BIRTHDAYS, AND OTHER ANNIVERSARIES The best approach for calculating calendrical periods in C# (or any .Net language) is by using the Period class in the Noda Time library: using NodaTime; Period CalculateAgeFrom(int year, int month, int day, string targetTimeZone, PeriodUnits units = PeriodUnits.YearMonthDay) { Instant now = SystemClock.Instance.Now; LocalDate today = now UTC VS GMT - CODE OF MATT I'm not going to dive into a history lesson here. This is about practical, usable information in today's modern world. You can always go read more about GMT and UTC on Wikipedia. What is the difference between UTC and GMT? Essentially, nothing.Really? There is no difference? Technically, UTC is WHAT IS A TIME ZONE? A geographic boundary that can usually be plotted on a map. A legal name (or a common name), such as "Eastern Time". One or more rules which consist of: The effective date and time for the rule A standard offset from UTC, such as UTC-5 If the time zone uses daylight saving time: The daylight offset, such as UTC-4. TIME ZONE ABBREVIATIONS What does the abbreviation EST mean? I'm sure you've seen that before. If you live in the United States, you might recognize it as "Eastern Standard Time", which is a time zone used in places like New York City, Washington D.C., and Miami. However, during a significantportion of
WORKING WITH DATE AND TIME IN RAVENDB The following is an article I wrote for the knowledge base on the RavenDB web site back in August of 2013. Recently, the site was revamped and the knowledge base was removed. Since the information is still relevant, I thought it would be worth republishing here. Enjoy!Working with Date
LOCALIZED TIME ZONE NAMES IN .NET If you've ever used the TimeZoneInfo class in the .NET framework, you probably know that it has properties intended for display of a time zone to the end user. Specifically, these are the DisplayName, StandardName, and DaylightName properties. However, there are a few problems with these. Unlike many other items in the .NET framework, they aren't affected by the CurrentCulture or BEWARE THE EDGE (CASES) OF TIME! Beware the Edge (cases) of Time! Ahh, time zones. There are so many wonderful traps to fall into. Consider this bit of code, from a recent blog post by Rick Strahl: public DateTime AdjustTimeZoneOffset(DateTime localTime, TimeZoneInfo tzi = null) { var offset = tzi.GetUtcOffset(localTime).TotalHours; var offset2 =TimeZoneInfo.Local
WORKING WITH TIME ZONE NAMES IN .NET UPDATE: I've made a library to do this work for you. Read Localized time zone names in .NET. If you've ever used the TimeZoneInfo object in .Net, you'll be familiar with the following properties: timeZoneInfo.Id // "Eastern Standard Time" timeZoneInfo.StandardName // "Eastern Standard Time" timeZoneInfo.DaylightNameALL THINGS IN TIME
All Things in Time. Let's face it, we live in a world that is governed by time. We describe all kinds of things with time at different scales. At one end of the scale we might measure the creation of the universe in terms of billions or trillions of years. At the other end of the scale we might measure the movement of electrons in nanoseconds THE MAGIC F4 KEY IN MICROSOFT OFFICE THE F4 KEY. So what does this magic key do? It simply repeats the last command on whatever the current context is. In my case, I needed to hide multiple wedges in a pie chart. So I clicked the first wedge and navigated through the point-and-click menus to HANDLING BIRTHDAYS, AND OTHER ANNIVERSARIES The best approach for calculating calendrical periods in C# (or any .Net language) is by using the Period class in the Noda Time library: using NodaTime; Period CalculateAgeFrom(int year, int month, int day, string targetTimeZone, PeriodUnits units = PeriodUnits.YearMonthDay) { Instant now = SystemClock.Instance.Now; LocalDate today = now UTC VS GMT - CODE OF MATT I'm not going to dive into a history lesson here. This is about practical, usable information in today's modern world. You can always go read more about GMT and UTC on Wikipedia. What is the difference between UTC and GMT? Essentially, nothing.Really? There is no difference? Technically, UTC is WHAT IS A TIME ZONE? A geographic boundary that can usually be plotted on a map. A legal name (or a common name), such as "Eastern Time". One or more rules which consist of: The effective date and time for the rule A standard offset from UTC, such as UTC-5 If the time zone uses daylight saving time: The daylight offset, such as UTC-4. TIME ZONE ABBREVIATIONS What does the abbreviation EST mean? I'm sure you've seen that before. If you live in the United States, you might recognize it as "Eastern Standard Time", which is a time zone used in places like New York City, Washington D.C., and Miami. However, during a significantportion of
WORKING WITH DATE AND TIME IN RAVENDB The following is an article I wrote for the knowledge base on the RavenDB web site back in August of 2013. Recently, the site was revamped and the knowledge base was removed. Since the information is still relevant, I thought it would be worth republishing here. Enjoy!Working with Date
LOCALIZED TIME ZONE NAMES IN .NET If you've ever used the TimeZoneInfo class in the .NET framework, you probably know that it has properties intended for display of a time zone to the end user. Specifically, these are the DisplayName, StandardName, and DaylightName properties. However, there are a few problems with these. Unlike many other items in the .NET framework, they aren't affected by the CurrentCulture or BEWARE THE EDGE (CASES) OF TIME! Beware the Edge (cases) of Time! Ahh, time zones. There are so many wonderful traps to fall into. Consider this bit of code, from a recent blog post by Rick Strahl: public DateTime AdjustTimeZoneOffset(DateTime localTime, TimeZoneInfo tzi = null) { var offset = tzi.GetUtcOffset(localTime).TotalHours; var offset2 =TimeZoneInfo.Local
WORKING WITH TIME ZONE NAMES IN .NET UPDATE: I've made a library to do this work for you. Read Localized time zone names in .NET. If you've ever used the TimeZoneInfo object in .Net, you'll be familiar with the following properties: timeZoneInfo.Id // "Eastern Standard Time" timeZoneInfo.StandardName // "Eastern Standard Time" timeZoneInfo.DaylightNameALL THINGS IN TIME
All Things in Time. Let's face it, we live in a world that is governed by time. We describe all kinds of things with time at different scales. At one end of the scale we might measure the creation of the universe in terms of billions or trillions of years. At the other end of the scale we might measure the movement of electrons in nanoseconds HANDLING BIRTHDAYS, AND OTHER ANNIVERSARIES The best approach for calculating calendrical periods in C# (or any .Net language) is by using the Period class in the Noda Time library: using NodaTime; Period CalculateAgeFrom(int year, int month, int day, string targetTimeZone, PeriodUnits units = PeriodUnits.YearMonthDay) { Instant now = SystemClock.Instance.Now; LocalDate today = nowMATT JOHNSON-PINT
leap-year List of 2020 Leap Day Bugs. 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. DATE-TIME - CODE OF MATT leap-year List of 2020 Leap Day Bugs. 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. TALKS - CODE OF MATT talks Seattle Code Camp 2015. I had the privelege of speaking at Seattle Code Camp this past weekend. Thanks to everyone that came out to hear me talk about time and BEWARE THE EDGE (CASES) OF TIME! Ahh, time zones. There are so many wonderful traps to fall into. Consider this bit of code, from a recent blog post by Rick Strahl: /// /// Converts a local machine time to the user's timezone time /// by applying the difference between the two timezones. /// /// < ON THE LIFE CYCLE OF A LEAP YEAR BUG Life cycle of a leap year bug: A software developer writes code for some product or service. Again the code is tested, analyzed, etc. But unless it's done on Feb 29th, there's a non-zero chance that a leap year bug goes unnoticed. Eventually the code is released into production, or shipped to a customer. The product or service is used. ON THE TIMING OF TIME ZONE CHANGES Venezuela had been on UTC-4:30 since 2007, but the government recently decided that it would return to UTC-4 on May 1st, 2016. The change was first announced on April 15th, then became official on April 18th when it was published in the country's Gazette (2 weeks notice). Azerbaijan canceled DST permanently in 2016. WINDOWS AZURE SCHEDULER Yesterday, I posted about time zone issues with the new Windows Azure Scheduler. Shortly after, I noticed a couple of additional issues that aren't time zone related at all. There is a section of the documentation that describes recurrence patterns: "recurrence": // optional { "frequency": "week" JAVASCRIPT DATE TYPE IS HORRIBLY BROKEN JavaScript Date type is horribly broken. JavaScript dates have always been a bit funny. As a .Net developer, there was a bit of a mind-shift for me, because they are inherently different than types like DateTime or DateTimeOffset. But I won't spend too much time on what they are not, lets just talk about what they are.CODE OF MATT
Five Common Daylight Saving Time Antipatterns of .NET Developers. It's 2015, and Daylight Saving Time is just around the corner. For most of North America, the clocks will "spring-forward" on Sunday, March 8th, stealing an hour of precious time from our daily. time-zone.ALL THINGS IN TIME
All Things in Time. Let's face it, we live in a world that is governed by time. We describe all kinds of things with time at different scales. At one end of the scale we might measure the creation of the universe in terms of billions or trillions of years. At the other end of the scale we might measure the movement of electrons in nanoseconds THE MAGIC F4 KEY IN MICROSOFT OFFICE THE F4 KEY. So what does this magic key do? It simply repeats the last command on whatever the current context is. In my case, I needed to hide multiple wedges in a pie chart. So I clicked the first wedge and navigated through the point-and-click menus to THE CASE AGAINST DATETIME.NOW The case against DateTime.Now. One of the first things most .Net developers learn to do with DateTime is to get the current value from the system clock. This is probably the most horrible introduction to date and time that you could have. In my less-than-humble opinion, this is one method that should be deprecated from the .Net framework. TIME ZONE ABBREVIATIONS What does the abbreviation EST mean? I'm sure you've seen that before. If you live in the United States, you might recognize it as "Eastern Standard Time", which is a time zone used in places like New York City, Washington D.C., and Miami. However, during a significantportion of
HANDLING BIRTHDAYS, AND OTHER ANNIVERSARIES The best approach for calculating calendrical periods in C# (or any .Net language) is by using the Period class in the Noda Time library: using NodaTime; Period CalculateAgeFrom(int year, int month, int day, string targetTimeZone, PeriodUnits units = PeriodUnits.YearMonthDay) { Instant now = SystemClock.Instance.Now; LocalDate today = now UTC VS GMT - CODE OF MATT I'm not going to dive into a history lesson here. This is about practical, usable information in today's modern world. You can always go read more about GMT and UTC on Wikipedia. What is the difference between UTC and GMT? Essentially, nothing.Really? There is no difference? Technically, UTC is LIST OF 2020 LEAP DAY BUGSSEE MORE ON CODEOFMATT.COM WORKING WITH TIME ZONE NAMES IN .NET UPDATE: I've made a library to do this work for you. Read Localized time zone names in .NET. If you've ever used the TimeZoneInfo object in .Net, you'll be familiar with the following properties: timeZoneInfo.Id // "Eastern Standard Time" timeZoneInfo.StandardName // "Eastern Standard Time" timeZoneInfo.DaylightName JAVASCRIPT DATE TYPE IS HORRIBLY BROKEN JavaScript Date type is horribly broken. JavaScript dates have always been a bit funny. As a .Net developer, there was a bit of a mind-shift for me, because they are inherently different than types like DateTime or DateTimeOffset. But I won't spend too much time onCODE OF MATT
Five Common Daylight Saving Time Antipatterns of .NET Developers. It's 2015, and Daylight Saving Time is just around the corner. For most of North America, the clocks will "spring-forward" on Sunday, March 8th, stealing an hour of precious time from our daily. time-zone.ALL THINGS IN TIME
All Things in Time. Let's face it, we live in a world that is governed by time. We describe all kinds of things with time at different scales. At one end of the scale we might measure the creation of the universe in terms of billions or trillions of years. At the other end of the scale we might measure the movement of electrons in nanoseconds THE MAGIC F4 KEY IN MICROSOFT OFFICE THE F4 KEY. So what does this magic key do? It simply repeats the last command on whatever the current context is. In my case, I needed to hide multiple wedges in a pie chart. So I clicked the first wedge and navigated through the point-and-click menus to THE CASE AGAINST DATETIME.NOW The case against DateTime.Now. One of the first things most .Net developers learn to do with DateTime is to get the current value from the system clock. This is probably the most horrible introduction to date and time that you could have. In my less-than-humble opinion, this is one method that should be deprecated from the .Net framework. TIME ZONE ABBREVIATIONS What does the abbreviation EST mean? I'm sure you've seen that before. If you live in the United States, you might recognize it as "Eastern Standard Time", which is a time zone used in places like New York City, Washington D.C., and Miami. However, during a significantportion of
HANDLING BIRTHDAYS, AND OTHER ANNIVERSARIES The best approach for calculating calendrical periods in C# (or any .Net language) is by using the Period class in the Noda Time library: using NodaTime; Period CalculateAgeFrom(int year, int month, int day, string targetTimeZone, PeriodUnits units = PeriodUnits.YearMonthDay) { Instant now = SystemClock.Instance.Now; LocalDate today = now UTC VS GMT - CODE OF MATT I'm not going to dive into a history lesson here. This is about practical, usable information in today's modern world. You can always go read more about GMT and UTC on Wikipedia. What is the difference between UTC and GMT? Essentially, nothing.Really? There is no difference? Technically, UTC is LIST OF 2020 LEAP DAY BUGSSEE MORE ON CODEOFMATT.COM WORKING WITH TIME ZONE NAMES IN .NET UPDATE: I've made a library to do this work for you. Read Localized time zone names in .NET. If you've ever used the TimeZoneInfo object in .Net, you'll be familiar with the following properties: timeZoneInfo.Id // "Eastern Standard Time" timeZoneInfo.StandardName // "Eastern Standard Time" timeZoneInfo.DaylightName JAVASCRIPT DATE TYPE IS HORRIBLY BROKEN JavaScript Date type is horribly broken. JavaScript dates have always been a bit funny. As a .Net developer, there was a bit of a mind-shift for me, because they are inherently different than types like DateTime or DateTimeOffset. But I won't spend too much time onALL THINGS IN TIME
All Things in Time. Let's face it, we live in a world that is governed by time. We describe all kinds of things with time at different scales. At one end of the scale we might measure the creation of the universe in terms of billions or trillions of years. At the other end of the scale we might measure the movement of electrons in nanoseconds WHAT IS A TIME ZONE? A geographic boundary that can usually be plotted on a map. A legal name (or a common name), such as "Eastern Time". One or more rules which consist of: The effective date and time for the rule A standard offset from UTC, such as UTC-5 If the time zone uses daylight saving time: The daylight offset, such as UTC-4. DATE-TIME - CODE OF MATT leap-year List of 2020 Leap Day Bugs. 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. ON THE TIMING OF TIME ZONE CHANGES Venezuela had been on UTC-4:30 since 2007, but the government recently decided that it would return to UTC-4 on May 1st, 2016. The change was first announced on April 15th, then became official on April 18th when it was published in the country's Gazette (2 weeks notice). Azerbaijan canceled DST permanently in 2016. WORKING WITH DATE AND TIME IN RAVENDB The following is an article I wrote for the knowledge base on the RavenDB web site back in August of 2013. Recently, the site was revamped and the knowledge base was removed. Since the information is still relevant, I thought it would be worth republishing here. Enjoy!Working with Date
TALKS - CODE OF MATT talks Seattle Code Camp 2015. I had the privelege of speaking at Seattle Code Camp this past weekend. Thanks to everyone that came out to hear me talk about time and BEWARE THE EDGE (CASES) OF TIME! Ahh, time zones. There are so many wonderful traps to fall into. Consider this bit of code, from a recent blog post by Rick Strahl: /// /// Converts a local machine time to the user's timezone time /// by applying the difference between the two timezones. /// /// < JAVASCRIPT DATE TYPE IS HORRIBLY BROKEN JavaScript Date type is horribly broken. JavaScript dates have always been a bit funny. As a .Net developer, there was a bit of a mind-shift for me, because they are inherently different than types like DateTime or DateTimeOffset. But I won't spend too much time on what they are not, lets just talk about what they are. WINDOWS AZURE SCHEDULER Yesterday, I posted about time zone issues with the new Windows Azure Scheduler. Shortly after, I noticed a couple of additional issues that aren't time zone related at all. There is a section of the documentation that describes recurrence patterns: "recurrence": // optional { "frequency": "week"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.ALL THINGS IN TIME
All Things in Time. Let's face it, we live in a world that is governed by time. We describe all kinds of things with time at different scales. At one end of the scale we might measure the creation of the universe in terms of billions or trillions of years. At the other end of the scale we might measure the movement of electrons in nanoseconds THE MAGIC F4 KEY IN MICROSOFT OFFICE THE F4 KEY. So what does this magic key do? It simply repeats the last command on whatever the current context is. In my case, I needed to hide multiple wedges in a pie chart. So I clicked the first wedge and navigated through the point-and-click menus to HANDLING BIRTHDAYS, AND OTHER ANNIVERSARIES The best approach for calculating calendrical periods in C# (or any .Net language) is by using the Period class in the Noda Time library: using NodaTime; Period CalculateAgeFrom(int year, int month, int day, string targetTimeZone, PeriodUnits units = PeriodUnits.YearMonthDay) { Instant now = SystemClock.Instance.Now; LocalDate today = now THE CASE AGAINST DATETIME.NOW One of the first things most .Net developers learn to do with DateTime is to get the current value from the system clock. DateTime now = DateTime.Now; This is probably the most horrible introduction to date and time that you could have. In my less-than-humble opinion, this isone method
TIME ZONE ABBREVIATIONS What does the abbreviation EST mean? I'm sure you've seen that before. If you live in the United States, you might recognize it as "Eastern Standard Time", which is a time zone used in places like New York City, Washington D.C., and Miami. However, during a significantportion of
UTC VS GMT - CODE OF MATT I'm not going to dive into a history lesson here. This is about practical, usable information in today's modern world. You can always go read more about GMT and UTC on Wikipedia. What is the difference between UTC and GMT? Essentially, nothing.Really? There is no difference? Technically, UTC is WORKING WITH DATE AND TIME IN RAVENDB The following is an article I wrote for the knowledge base on the RavenDB web site back in August of 2013. Recently, the site was revamped and the knowledge base was removed. Since the information is still relevant, I thought it would be worth republishing here. Enjoy!Working with Date
LOCALIZED TIME ZONE NAMES IN .NET If you've ever used the TimeZoneInfo class in the .NET framework, you probably know that it has properties intended for display of a time zone to the end user. Specifically, these are the DisplayName, StandardName, and DaylightName properties. However, there are a few problems with these. Unlike many other items in the .NET framework, they aren't affected by the CurrentCulture or BEWARE THE EDGE (CASES) OF TIME! Beware the Edge (cases) of Time! Ahh, time zones. There are so many wonderful traps to fall into. Consider this bit of code, from a recent blog post by Rick Strahl: public DateTime AdjustTimeZoneOffset(DateTime localTime, TimeZoneInfo tzi = null) { var offset = tzi.GetUtcOffset(localTime).TotalHours; var offset2 =TimeZoneInfo.Local
WORKING WITH TIME ZONE NAMES IN .NET UPDATE: I've made a library to do this work for you. Read Localized time zone names in .NET. If you've ever used the TimeZoneInfo object in .Net, you'll be familiar with the following properties: timeZoneInfo.Id // "Eastern Standard Time" timeZoneInfo.StandardName // "Eastern Standard Time" timeZoneInfo.DaylightNameALL THINGS IN TIME
All Things in Time. Let's face it, we live in a world that is governed by time. We describe all kinds of things with time at different scales. At one end of the scale we might measure the creation of the universe in terms of billions or trillions of years. At the other end of the scale we might measure the movement of electrons in nanoseconds THE MAGIC F4 KEY IN MICROSOFT OFFICE THE F4 KEY. So what does this magic key do? It simply repeats the last command on whatever the current context is. In my case, I needed to hide multiple wedges in a pie chart. So I clicked the first wedge and navigated through the point-and-click menus to HANDLING BIRTHDAYS, AND OTHER ANNIVERSARIES The best approach for calculating calendrical periods in C# (or any .Net language) is by using the Period class in the Noda Time library: using NodaTime; Period CalculateAgeFrom(int year, int month, int day, string targetTimeZone, PeriodUnits units = PeriodUnits.YearMonthDay) { Instant now = SystemClock.Instance.Now; LocalDate today = now THE CASE AGAINST DATETIME.NOW One of the first things most .Net developers learn to do with DateTime is to get the current value from the system clock. DateTime now = DateTime.Now; This is probably the most horrible introduction to date and time that you could have. In my less-than-humble opinion, this isone method
TIME ZONE ABBREVIATIONS What does the abbreviation EST mean? I'm sure you've seen that before. If you live in the United States, you might recognize it as "Eastern Standard Time", which is a time zone used in places like New York City, Washington D.C., and Miami. However, during a significantportion of
UTC VS GMT - CODE OF MATT I'm not going to dive into a history lesson here. This is about practical, usable information in today's modern world. You can always go read more about GMT and UTC on Wikipedia. What is the difference between UTC and GMT? Essentially, nothing.Really? There is no difference? Technically, UTC is WORKING WITH DATE AND TIME IN RAVENDB The following is an article I wrote for the knowledge base on the RavenDB web site back in August of 2013. Recently, the site was revamped and the knowledge base was removed. Since the information is still relevant, I thought it would be worth republishing here. Enjoy!Working with Date
LOCALIZED TIME ZONE NAMES IN .NET If you've ever used the TimeZoneInfo class in the .NET framework, you probably know that it has properties intended for display of a time zone to the end user. Specifically, these are the DisplayName, StandardName, and DaylightName properties. However, there are a few problems with these. Unlike many other items in the .NET framework, they aren't affected by the CurrentCulture or BEWARE THE EDGE (CASES) OF TIME! Beware the Edge (cases) of Time! Ahh, time zones. There are so many wonderful traps to fall into. Consider this bit of code, from a recent blog post by Rick Strahl: public DateTime AdjustTimeZoneOffset(DateTime localTime, TimeZoneInfo tzi = null) { var offset = tzi.GetUtcOffset(localTime).TotalHours; var offset2 =TimeZoneInfo.Local
WORKING WITH TIME ZONE NAMES IN .NET UPDATE: I've made a library to do this work for you. Read Localized time zone names in .NET. If you've ever used the TimeZoneInfo object in .Net, you'll be familiar with the following properties: timeZoneInfo.Id // "Eastern Standard Time" timeZoneInfo.StandardName // "Eastern Standard Time" timeZoneInfo.DaylightNameALL THINGS IN TIME
All Things in Time. Let's face it, we live in a world that is governed by time. We describe all kinds of things with time at different scales. At one end of the scale we might measure the creation of the universe in terms of billions or trillions of years. At the other end of the scale we might measure the movement of electrons in nanosecondsMATT JOHNSON-PINT
leap-year List of 2020 Leap Day Bugs. 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. WHAT IS A TIME ZONE? A geographic boundary that can usually be plotted on a map. A legal name (or a common name), such as "Eastern Time". One or more rules which consist of: The effective date and time for the rule A standard offset from UTC, such as UTC-5 If the time zone uses daylight saving time: The daylight offset, such as UTC-4. ON THE TIMING OF TIME ZONE CHANGES Venezuela had been on UTC-4:30 since 2007, but the government recently decided that it would return to UTC-4 on May 1st, 2016. The change was first announced on April 15th, then became official on April 18th when it was published in the country's Gazette (2 weeks notice). Azerbaijan canceled DST permanently in 2016..NET - CODE OF MATT
.NET Five Common Daylight Saving Time Antipatterns of .NET Developers. It's 2015, and Daylight Saving Time is just around the corner. For most of North America, the clocks will "spring-forward" on Sunday, March 8th, stealing an hour of precious time from our daily TALKS - CODE OF MATT talks Seattle Code Camp 2015. I had the privelege of speaking at Seattle Code Camp this past weekend. Thanks to everyone that came out to hear me talk about time and BEWARE THE EDGE (CASES) OF TIME! Ahh, time zones. There are so many wonderful traps to fall into. Consider this bit of code, from a recent blog post by Rick Strahl: /// /// Converts a local machine time to the user's timezone time /// by applying the difference between the two timezones. /// /// < ON THE LIFE CYCLE OF A LEAP YEAR BUG Life cycle of a leap year bug: A software developer writes code for some product or service. Again the code is tested, analyzed, etc. But unless it's done on Feb 29th, there's a non-zero chance that a leap year bug goes unnoticed. Eventually the code is released into production, or shipped to a customer. The product or service is used. WINDOWS AZURE SCHEDULER Yesterday, I posted about time zone issues with the new Windows Azure Scheduler. Shortly after, I noticed a couple of additional issues that aren't time zone related at all. There is a section of the documentation that describes recurrence patterns: "recurrence": // optional { "frequency": "week" JAVASCRIPT DATE TYPE IS HORRIBLY BROKEN JavaScript Date type is horribly broken. JavaScript dates have always been a bit funny. As a .Net developer, there was a bit of a mind-shift for me, because they are inherently different than types like DateTime or DateTimeOffset. But I won't spend too much time on what they are not, lets just talk about what they are.ALL THINGS IN TIME
All Things in Time. Let's face it, we live in a world that is governed by time. We describe all kinds of things with time at different scales. At one end of the scale we might measure the creation of the universe in terms of billions or trillions of years. At the other end of the scale we might measure the movement of electrons in nanoseconds THE MAGIC F4 KEY IN MICROSOFT OFFICE THE F4 KEY. So what does this magic key do? It simply repeats the last command on whatever the current context is. In my case, I needed to hide multiple wedges in a pie chart. So I clicked the first wedge and navigated through the point-and-click menus to HANDLING BIRTHDAYS, AND OTHER ANNIVERSARIES The best approach for calculating calendrical periods in C# (or any .Net language) is by using the Period class in the Noda Time library: using NodaTime; Period CalculateAgeFrom(int year, int month, int day, string targetTimeZone, PeriodUnits units = PeriodUnits.YearMonthDay) { Instant now = SystemClock.Instance.Now; LocalDate today = now THE CASE AGAINST DATETIME.NOW One of the first things most .Net developers learn to do with DateTime is to get the current value from the system clock. DateTime now = DateTime.Now; This is probably the most horrible introduction to date and time that you could have. In my less-than-humble opinion, this isone method
TIME ZONE ABBREVIATIONS What does the abbreviation EST mean? I'm sure you've seen that before. If you live in the United States, you might recognize it as "Eastern Standard Time", which is a time zone used in places like New York City, Washington D.C., and Miami. However, during a significantportion of
UTC VS GMT - CODE OF MATT I'm not going to dive into a history lesson here. This is about practical, usable information in today's modern world. You can always go read more about GMT and UTC on Wikipedia. What is the difference between UTC and GMT? Essentially, nothing.Really? There is no difference? Technically, UTC is WORKING WITH DATE AND TIME IN RAVENDB The following is an article I wrote for the knowledge base on the RavenDB web site back in August of 2013. Recently, the site was revamped and the knowledge base was removed. Since the information is still relevant, I thought it would be worth republishing here. Enjoy!Working with Date
LOCALIZED TIME ZONE NAMES IN .NET If you've ever used the TimeZoneInfo class in the .NET framework, you probably know that it has properties intended for display of a time zone to the end user. Specifically, these are the DisplayName, StandardName, and DaylightName properties. However, there are a few problems with these. Unlike many other items in the .NET framework, they aren't affected by the CurrentCulture or BEWARE THE EDGE (CASES) OF TIME! Beware the Edge (cases) of Time! Ahh, time zones. There are so many wonderful traps to fall into. Consider this bit of code, from a recent blog post by Rick Strahl: public DateTime AdjustTimeZoneOffset(DateTime localTime, TimeZoneInfo tzi = null) { var offset = tzi.GetUtcOffset(localTime).TotalHours; var offset2 =TimeZoneInfo.Local
WORKING WITH TIME ZONE NAMES IN .NET UPDATE: I've made a library to do this work for you. Read Localized time zone names in .NET. If you've ever used the TimeZoneInfo object in .Net, you'll be familiar with the following properties: timeZoneInfo.Id // "Eastern Standard Time" timeZoneInfo.StandardName // "Eastern Standard Time" timeZoneInfo.DaylightNameALL THINGS IN TIME
All Things in Time. Let's face it, we live in a world that is governed by time. We describe all kinds of things with time at different scales. At one end of the scale we might measure the creation of the universe in terms of billions or trillions of years. At the other end of the scale we might measure the movement of electrons in nanoseconds THE MAGIC F4 KEY IN MICROSOFT OFFICE THE F4 KEY. So what does this magic key do? It simply repeats the last command on whatever the current context is. In my case, I needed to hide multiple wedges in a pie chart. So I clicked the first wedge and navigated through the point-and-click menus to HANDLING BIRTHDAYS, AND OTHER ANNIVERSARIES The best approach for calculating calendrical periods in C# (or any .Net language) is by using the Period class in the Noda Time library: using NodaTime; Period CalculateAgeFrom(int year, int month, int day, string targetTimeZone, PeriodUnits units = PeriodUnits.YearMonthDay) { Instant now = SystemClock.Instance.Now; LocalDate today = now THE CASE AGAINST DATETIME.NOW One of the first things most .Net developers learn to do with DateTime is to get the current value from the system clock. DateTime now = DateTime.Now; This is probably the most horrible introduction to date and time that you could have. In my less-than-humble opinion, this isone method
TIME ZONE ABBREVIATIONS What does the abbreviation EST mean? I'm sure you've seen that before. If you live in the United States, you might recognize it as "Eastern Standard Time", which is a time zone used in places like New York City, Washington D.C., and Miami. However, during a significantportion of
ALL THINGS IN TIME
All Things in Time. Let's face it, we live in a world that is governed by time. We describe all kinds of things with time at different scales. At one end of the scale we might measure the creation of the universe in terms of billions or trillions of years. At the other end of the scale we might measure the movement of electrons in nanosecondsMATT JOHNSON-PINT
leap-year List of 2020 Leap Day Bugs. 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. WHAT IS A TIME ZONE? A geographic boundary that can usually be plotted on a map. A legal name (or a common name), such as "Eastern Time". One or more rules which consist of: The effective date and time for the rule A standard offset from UTC, such as UTC-5 If the time zone uses daylight saving time: The daylight offset, such as UTC-4. ON THE TIMING OF TIME ZONE CHANGES Venezuela had been on UTC-4:30 since 2007, but the government recently decided that it would return to UTC-4 on May 1st, 2016. The change was first announced on April 15th, then became official on April 18th when it was published in the country's Gazette (2 weeks notice). Azerbaijan canceled DST permanently in 2016..NET - CODE OF MATT
.NET Five Common Daylight Saving Time Antipatterns of .NET Developers. It's 2015, and Daylight Saving Time is just around the corner. For most of North America, the clocks will "spring-forward" on Sunday, March 8th, stealing an hour of precious time from our daily TALKS - CODE OF MATT talks Seattle Code Camp 2015. I had the privelege of speaking at Seattle Code Camp this past weekend. Thanks to everyone that came out to hear me talk about time and BEWARE THE EDGE (CASES) OF TIME! Ahh, time zones. There are so many wonderful traps to fall into. Consider this bit of code, from a recent blog post by Rick Strahl: /// /// Converts a local machine time to the user's timezone time /// by applying the difference between the two timezones. /// /// < ON THE LIFE CYCLE OF A LEAP YEAR BUG Life cycle of a leap year bug: A software developer writes code for some product or service. Again the code is tested, analyzed, etc. But unless it's done on Feb 29th, there's a non-zero chance that a leap year bug goes unnoticed. Eventually the code is released into production, or shipped to a customer. The product or service is used. WINDOWS AZURE SCHEDULER Yesterday, I posted about time zone issues with the new Windows Azure Scheduler. Shortly after, I noticed a couple of additional issues that aren't time zone related at all. There is a section of the documentation that describes recurrence patterns: "recurrence": // optional { "frequency": "week" JAVASCRIPT DATE TYPE IS HORRIBLY BROKEN JavaScript Date type is horribly broken. JavaScript dates have always been a bit funny. As a .Net developer, there was a bit of a mind-shift for me, because they are inherently different than types like DateTime or DateTimeOffset. But I won't spend too much time on what they are not, lets just talk about what they are.CODE OF MATT
Five Common Daylight Saving Time Antipatterns of .NET Developers. It's 2015, and Daylight Saving Time is just around the corner. For most of North America, the clocks will "spring-forward" on Sunday, March 8th, stealing an hour of precious time from our daily. time-zone. THE MAGIC F4 KEY IN MICROSOFT OFFICE THE F4 KEY. So what does this magic key do? It simply repeats the last command on whatever the current context is. In my case, I needed to hide multiple wedges in a pie chart. So I clicked the first wedge and navigated through the point-and-click menus to TIME ZONE ABBREVIATIONS What does the abbreviation EST mean? I'm sure you've seen that before. If you live in the United States, you might recognize it as "Eastern Standard Time", which is a time zone used in places like New York City, Washington D.C., and Miami. However, during a significantportion of
THE CASE AGAINST DATETIME.NOW One of the first things most .Net developers learn to do with DateTime is to get the current value from the system clock. DateTime now = DateTime.Now; This is probably the most horrible introduction to date and time that you could have. In my less-than-humble opinion, this isone method
HANDLING BIRTHDAYS, AND OTHER ANNIVERSARIES The best approach for calculating calendrical periods in C# (or any .Net language) is by using the Period class in the Noda Time library: using NodaTime; Period CalculateAgeFrom(int year, int month, int day, string targetTimeZone, PeriodUnits units = PeriodUnits.YearMonthDay) { Instant now = SystemClock.Instance.Now; LocalDate today = now UTC VS GMT - CODE OF MATT I'm not going to dive into a history lesson here. This is about practical, usable information in today's modern world. You can always go read more about GMT and UTC on Wikipedia. What is the difference between UTC and GMT? Essentially, nothing.Really? There is no difference? Technically, UTC is LIST OF 2020 LEAP DAY BUGSSEE MORE ON CODEOFMATT.COM ON THE TIMING OF TIME ZONE CHANGESSEE MORE ON CODEOFMATT.COM BEWARE THE EDGE (CASES) OF TIME! Beware the Edge (cases) of Time! Ahh, time zones. There are so many wonderful traps to fall into. Consider this bit of code, from a recent blog post by Rick Strahl: public DateTime AdjustTimeZoneOffset(DateTime localTime, TimeZoneInfo tzi = null) { var offset = tzi.GetUtcOffset(localTime).TotalHours; var offset2 =TimeZoneInfo.Local
WORKING WITH TIME ZONE NAMES IN .NET UPDATE: I've made a library to do this work for you. Read Localized time zone names in .NET. If you've ever used the TimeZoneInfo object in .Net, you'll be familiar with the following properties: timeZoneInfo.Id // "Eastern Standard Time" timeZoneInfo.StandardName // "Eastern Standard Time" timeZoneInfo.DaylightNameCODE OF MATT
Five Common Daylight Saving Time Antipatterns of .NET Developers. It's 2015, and Daylight Saving Time is just around the corner. For most of North America, the clocks will "spring-forward" on Sunday, March 8th, stealing an hour of precious time from our daily. time-zone. THE MAGIC F4 KEY IN MICROSOFT OFFICE THE F4 KEY. So what does this magic key do? It simply repeats the last command on whatever the current context is. In my case, I needed to hide multiple wedges in a pie chart. So I clicked the first wedge and navigated through the point-and-click menus to TIME ZONE ABBREVIATIONS What does the abbreviation EST mean? I'm sure you've seen that before. If you live in the United States, you might recognize it as "Eastern Standard Time", which is a time zone used in places like New York City, Washington D.C., and Miami. However, during a significantportion of
THE CASE AGAINST DATETIME.NOW One of the first things most .Net developers learn to do with DateTime is to get the current value from the system clock. DateTime now = DateTime.Now; This is probably the most horrible introduction to date and time that you could have. In my less-than-humble opinion, this isone method
HANDLING BIRTHDAYS, AND OTHER ANNIVERSARIES The best approach for calculating calendrical periods in C# (or any .Net language) is by using the Period class in the Noda Time library: using NodaTime; Period CalculateAgeFrom(int year, int month, int day, string targetTimeZone, PeriodUnits units = PeriodUnits.YearMonthDay) { Instant now = SystemClock.Instance.Now; LocalDate today = now UTC VS GMT - CODE OF MATT I'm not going to dive into a history lesson here. This is about practical, usable information in today's modern world. You can always go read more about GMT and UTC on Wikipedia. What is the difference between UTC and GMT? Essentially, nothing.Really? There is no difference? Technically, UTC is LIST OF 2020 LEAP DAY BUGSSEE MORE ON CODEOFMATT.COM ON THE TIMING OF TIME ZONE CHANGESSEE MORE ON CODEOFMATT.COM BEWARE THE EDGE (CASES) OF TIME! Beware the Edge (cases) of Time! Ahh, time zones. There are so many wonderful traps to fall into. Consider this bit of code, from a recent blog post by Rick Strahl: public DateTime AdjustTimeZoneOffset(DateTime localTime, TimeZoneInfo tzi = null) { var offset = tzi.GetUtcOffset(localTime).TotalHours; var offset2 =TimeZoneInfo.Local
WORKING WITH TIME ZONE NAMES IN .NET UPDATE: I've made a library to do this work for you. Read Localized time zone names in .NET. If you've ever used the TimeZoneInfo object in .Net, you'll be familiar with the following properties: timeZoneInfo.Id // "Eastern Standard Time" timeZoneInfo.StandardName // "Eastern Standard Time" timeZoneInfo.DaylightNameALL THINGS IN TIME
All Things in Time. Let's face it, we live in a world that is governed by time. We describe all kinds of things with time at different scales. At one end of the scale we might measure the creation of the universe in terms of billions or trillions of years. At the other end of the scale we might measure the movement of electrons in nanoseconds HANDLING BIRTHDAYS, AND OTHER ANNIVERSARIES The best approach for calculating calendrical periods in C# (or any .Net language) is by using the Period class in the Noda Time library: using NodaTime; Period CalculateAgeFrom(int year, int month, int day, string targetTimeZone, PeriodUnits units = PeriodUnits.YearMonthDay) { Instant now = SystemClock.Instance.Now; LocalDate today = now WHAT IS A TIME ZONE? A geographic boundary that can usually be plotted on a map. A legal name (or a common name), such as "Eastern Time". One or more rules which consist of: The effective date and time for the rule A standard offset from UTC, such as UTC-5 If the time zone uses daylight saving time: The daylight offset, such as UTC-4. BEWARE THE EDGE (CASES) OF TIME! Ahh, time zones. There are so many wonderful traps to fall into. Consider this bit of code, from a recent blog post by Rick Strahl: /// /// Converts a local machine time to the user's timezone time /// by applying the difference between the two timezones. /// /// <.NET - CODE OF MATT
.NET Five Common Daylight Saving Time Antipatterns of .NET Developers. It's 2015, and Daylight Saving Time is just around the corner. For most of North America, the clocks will "spring-forward" on Sunday, March 8th, stealing an hour of precious time from our daily TALKS - CODE OF MATT talks Seattle Code Camp 2015. I had the privelege of speaking at Seattle Code Camp this past weekend. Thanks to everyone that came out to hear me talk about time and WORKING WITH DATE AND TIME IN RAVENDB The following is an article I wrote for the knowledge base on the RavenDB web site back in August of 2013. Recently, the site was revamped and the knowledge base was removed. Since the information is still relevant, I thought it would be worth republishing here. Enjoy!Working with Date
ON THE LIFE CYCLE OF A LEAP YEAR BUG Life cycle of a leap year bug: A software developer writes code for some product or service. Again the code is tested, analyzed, etc. But unless it's done on Feb 29th, there's a non-zero chance that a leap year bug goes unnoticed. Eventually the code is released into production, or shipped to a customer. The product or service is used. WINDOWS AZURE SCHEDULER Yesterday, I posted about time zone issues with the new Windows Azure Scheduler. Shortly after, I noticed a couple of additional issues that aren't time zone related at all. There is a section of the documentation that describes recurrence patterns: "recurrence": // optional { "frequency": "week" JAVASCRIPT DATE TYPE IS HORRIBLY BROKEN JavaScript Date type is horribly broken. JavaScript dates have always been a bit funny. As a .Net developer, there was a bit of a mind-shift for me, because they are inherently different than types like DateTime or DateTimeOffset. But I won't spend too much time on what they are not, lets just talk about what they are.CODE OF MATT
Five Common Daylight Saving Time Antipatterns of .NET Developers. It's 2015, and Daylight Saving Time is just around the corner. For most of North America, the clocks will "spring-forward" on Sunday, March 8th, stealing an hour of precious time from our daily. time-zone. THE MAGIC F4 KEY IN MICROSOFT OFFICE THE F4 KEY. So what does this magic key do? It simply repeats the last command on whatever the current context is. In my case, I needed to hide multiple wedges in a pie chart. So I clicked the first wedge and navigated through the point-and-click menus to TIME ZONE ABBREVIATIONS What does the abbreviation EST mean? I'm sure you've seen that before. If you live in the United States, you might recognize it as "Eastern Standard Time", which is a time zone used in places like New York City, Washington D.C., and Miami. However, during a significantportion of
THE CASE AGAINST DATETIME.NOW One of the first things most .Net developers learn to do with DateTime is to get the current value from the system clock. DateTime now = DateTime.Now; This is probably the most horrible introduction to date and time that you could have. In my less-than-humble opinion, this isone method
HANDLING BIRTHDAYS, AND OTHER ANNIVERSARIES The best approach for calculating calendrical periods in C# (or any .Net language) is by using the Period class in the Noda Time library: using NodaTime; Period CalculateAgeFrom(int year, int month, int day, string targetTimeZone, PeriodUnits units = PeriodUnits.YearMonthDay) { Instant now = SystemClock.Instance.Now; LocalDate today = now UTC VS GMT - CODE OF MATT I'm not going to dive into a history lesson here. This is about practical, usable information in today's modern world. You can always go read more about GMT and UTC on Wikipedia. What is the difference between UTC and GMT? Essentially, nothing.Really? There is no difference? Technically, UTC is LIST OF 2020 LEAP DAY BUGSSEE MORE ON CODEOFMATT.COM ON THE TIMING OF TIME ZONE CHANGESSEE MORE ON CODEOFMATT.COM BEWARE THE EDGE (CASES) OF TIME! Beware the Edge (cases) of Time! Ahh, time zones. There are so many wonderful traps to fall into. Consider this bit of code, from a recent blog post by Rick Strahl: public DateTime AdjustTimeZoneOffset(DateTime localTime, TimeZoneInfo tzi = null) { var offset = tzi.GetUtcOffset(localTime).TotalHours; var offset2 =TimeZoneInfo.Local
WORKING WITH TIME ZONE NAMES IN .NET UPDATE: I've made a library to do this work for you. Read Localized time zone names in .NET. If you've ever used the TimeZoneInfo object in .Net, you'll be familiar with the following properties: timeZoneInfo.Id // "Eastern Standard Time" timeZoneInfo.StandardName // "Eastern Standard Time" timeZoneInfo.DaylightNameCODE OF MATT
Five Common Daylight Saving Time Antipatterns of .NET Developers. It's 2015, and Daylight Saving Time is just around the corner. For most of North America, the clocks will "spring-forward" on Sunday, March 8th, stealing an hour of precious time from our daily. time-zone. THE MAGIC F4 KEY IN MICROSOFT OFFICE THE F4 KEY. So what does this magic key do? It simply repeats the last command on whatever the current context is. In my case, I needed to hide multiple wedges in a pie chart. So I clicked the first wedge and navigated through the point-and-click menus to TIME ZONE ABBREVIATIONS What does the abbreviation EST mean? I'm sure you've seen that before. If you live in the United States, you might recognize it as "Eastern Standard Time", which is a time zone used in places like New York City, Washington D.C., and Miami. However, during a significantportion of
THE CASE AGAINST DATETIME.NOW One of the first things most .Net developers learn to do with DateTime is to get the current value from the system clock. DateTime now = DateTime.Now; This is probably the most horrible introduction to date and time that you could have. In my less-than-humble opinion, this isone method
HANDLING BIRTHDAYS, AND OTHER ANNIVERSARIES The best approach for calculating calendrical periods in C# (or any .Net language) is by using the Period class in the Noda Time library: using NodaTime; Period CalculateAgeFrom(int year, int month, int day, string targetTimeZone, PeriodUnits units = PeriodUnits.YearMonthDay) { Instant now = SystemClock.Instance.Now; LocalDate today = now UTC VS GMT - CODE OF MATT I'm not going to dive into a history lesson here. This is about practical, usable information in today's modern world. You can always go read more about GMT and UTC on Wikipedia. What is the difference between UTC and GMT? Essentially, nothing.Really? There is no difference? Technically, UTC is LIST OF 2020 LEAP DAY BUGSSEE MORE ON CODEOFMATT.COM ON THE TIMING OF TIME ZONE CHANGESSEE MORE ON CODEOFMATT.COM BEWARE THE EDGE (CASES) OF TIME! Beware the Edge (cases) of Time! Ahh, time zones. There are so many wonderful traps to fall into. Consider this bit of code, from a recent blog post by Rick Strahl: public DateTime AdjustTimeZoneOffset(DateTime localTime, TimeZoneInfo tzi = null) { var offset = tzi.GetUtcOffset(localTime).TotalHours; var offset2 =TimeZoneInfo.Local
WORKING WITH TIME ZONE NAMES IN .NET UPDATE: I've made a library to do this work for you. Read Localized time zone names in .NET. If you've ever used the TimeZoneInfo object in .Net, you'll be familiar with the following properties: timeZoneInfo.Id // "Eastern Standard Time" timeZoneInfo.StandardName // "Eastern Standard Time" timeZoneInfo.DaylightNameALL THINGS IN TIME
All Things in Time. Let's face it, we live in a world that is governed by time. We describe all kinds of things with time at different scales. At one end of the scale we might measure the creation of the universe in terms of billions or trillions of years. At the other end of the scale we might measure the movement of electrons in nanoseconds HANDLING BIRTHDAYS, AND OTHER ANNIVERSARIES The best approach for calculating calendrical periods in C# (or any .Net language) is by using the Period class in the Noda Time library: using NodaTime; Period CalculateAgeFrom(int year, int month, int day, string targetTimeZone, PeriodUnits units = PeriodUnits.YearMonthDay) { Instant now = SystemClock.Instance.Now; LocalDate today = now WHAT IS A TIME ZONE? A geographic boundary that can usually be plotted on a map. A legal name (or a common name), such as "Eastern Time". One or more rules which consist of: The effective date and time for the rule A standard offset from UTC, such as UTC-5 If the time zone uses daylight saving time: The daylight offset, such as UTC-4. BEWARE THE EDGE (CASES) OF TIME! Ahh, time zones. There are so many wonderful traps to fall into. Consider this bit of code, from a recent blog post by Rick Strahl: /// /// Converts a local machine time to the user's timezone time /// by applying the difference between the two timezones. /// /// <.NET - CODE OF MATT
.NET Five Common Daylight Saving Time Antipatterns of .NET Developers. It's 2015, and Daylight Saving Time is just around the corner. For most of North America, the clocks will "spring-forward" on Sunday, March 8th, stealing an hour of precious time from our daily TALKS - CODE OF MATT talks Seattle Code Camp 2015. I had the privelege of speaking at Seattle Code Camp this past weekend. Thanks to everyone that came out to hear me talk about time and WORKING WITH DATE AND TIME IN RAVENDB The following is an article I wrote for the knowledge base on the RavenDB web site back in August of 2013. Recently, the site was revamped and the knowledge base was removed. Since the information is still relevant, I thought it would be worth republishing here. Enjoy!Working with Date
ON THE LIFE CYCLE OF A LEAP YEAR BUG Life cycle of a leap year bug: A software developer writes code for some product or service. Again the code is tested, analyzed, etc. But unless it's done on Feb 29th, there's a non-zero chance that a leap year bug goes unnoticed. Eventually the code is released into production, or shipped to a customer. The product or service is used. WINDOWS AZURE SCHEDULER Yesterday, I posted about time zone issues with the new Windows Azure Scheduler. Shortly after, I noticed a couple of additional issues that aren't time zone related at all. There is a section of the documentation that describes recurrence patterns: "recurrence": // optional { "frequency": "week" JAVASCRIPT DATE TYPE IS HORRIBLY BROKEN JavaScript Date type is horribly broken. JavaScript dates have always been a bit funny. As a .Net developer, there was a bit of a mind-shift for me, because they are inherently different than types like DateTime or DateTimeOffset. But I won't spend too much time on what they are not, lets just talk about what they are.CODE OF MATT
Five Common Daylight Saving Time Antipatterns of .NET Developers. It's 2015, and Daylight Saving Time is just around the corner. For most of North America, the clocks will "spring-forward" on Sunday, March 8th, stealing an hour of precious time from our daily. time-zone. THE MAGIC F4 KEY IN MICROSOFT OFFICE THE F4 KEY. So what does this magic key do? It simply repeats the last command on whatever the current context is. In my case, I needed to hide multiple wedges in a pie chart. So I clicked the first wedge and navigated through the point-and-click menus to TIME ZONE ABBREVIATIONS What does the abbreviation EST mean? I'm sure you've seen that before. If you live in the United States, you might recognize it as "Eastern Standard Time", which is a time zone used in places like New York City, Washington D.C., and Miami. However, during a significantportion of
THE CASE AGAINST DATETIME.NOW One of the first things most .Net developers learn to do with DateTime is to get the current value from the system clock. DateTime now = DateTime.Now; This is probably the most horrible introduction to date and time that you could have. In my less-than-humble opinion, this isone method
HANDLING BIRTHDAYS, AND OTHER ANNIVERSARIES The best approach for calculating calendrical periods in C# (or any .Net language) is by using the Period class in the Noda Time library: using NodaTime; Period CalculateAgeFrom(int year, int month, int day, string targetTimeZone, PeriodUnits units = PeriodUnits.YearMonthDay) { Instant now = SystemClock.Instance.Now; LocalDate today = now UTC VS GMT - CODE OF MATT I'm not going to dive into a history lesson here. This is about practical, usable information in today's modern world. You can always go read more about GMT and UTC on Wikipedia. What is the difference between UTC and GMT? Essentially, nothing.Really? There is no difference? Technically, UTC is LIST OF 2020 LEAP DAY BUGSSEE MORE ON CODEOFMATT.COM ON THE TIMING OF TIME ZONE CHANGESSEE MORE ON CODEOFMATT.COMCHANGE TO CENTRAL TIME ZONECHANGE WINDOWS TIME ZONECHANGE TIME ZONE IN FACEBOOK BEWARE THE EDGE (CASES) OF TIME! Beware the Edge (cases) of Time! Ahh, time zones. There are so many wonderful traps to fall into. Consider this bit of code, from a recent blog post by Rick Strahl: public DateTime AdjustTimeZoneOffset(DateTime localTime, TimeZoneInfo tzi = null) { var offset = tzi.GetUtcOffset(localTime).TotalHours; var offset2 =TimeZoneInfo.Local
WORKING WITH TIME ZONE NAMES IN .NET UPDATE: I've made a library to do this work for you. Read Localized time zone names in .NET. If you've ever used the TimeZoneInfo object in .Net, you'll be familiar with the following properties: timeZoneInfo.Id // "Eastern Standard Time" timeZoneInfo.StandardName // "Eastern Standard Time" timeZoneInfo.DaylightNameCODE OF MATT
Five Common Daylight Saving Time Antipatterns of .NET Developers. It's 2015, and Daylight Saving Time is just around the corner. For most of North America, the clocks will "spring-forward" on Sunday, March 8th, stealing an hour of precious time from our daily. time-zone. THE MAGIC F4 KEY IN MICROSOFT OFFICE THE F4 KEY. So what does this magic key do? It simply repeats the last command on whatever the current context is. In my case, I needed to hide multiple wedges in a pie chart. So I clicked the first wedge and navigated through the point-and-click menus to TIME ZONE ABBREVIATIONS What does the abbreviation EST mean? I'm sure you've seen that before. If you live in the United States, you might recognize it as "Eastern Standard Time", which is a time zone used in places like New York City, Washington D.C., and Miami. However, during a significantportion of
THE CASE AGAINST DATETIME.NOW One of the first things most .Net developers learn to do with DateTime is to get the current value from the system clock. DateTime now = DateTime.Now; This is probably the most horrible introduction to date and time that you could have. In my less-than-humble opinion, this isone method
HANDLING BIRTHDAYS, AND OTHER ANNIVERSARIES The best approach for calculating calendrical periods in C# (or any .Net language) is by using the Period class in the Noda Time library: using NodaTime; Period CalculateAgeFrom(int year, int month, int day, string targetTimeZone, PeriodUnits units = PeriodUnits.YearMonthDay) { Instant now = SystemClock.Instance.Now; LocalDate today = now UTC VS GMT - CODE OF MATT I'm not going to dive into a history lesson here. This is about practical, usable information in today's modern world. You can always go read more about GMT and UTC on Wikipedia. What is the difference between UTC and GMT? Essentially, nothing.Really? There is no difference? Technically, UTC is LIST OF 2020 LEAP DAY BUGSSEE MORE ON CODEOFMATT.COM ON THE TIMING OF TIME ZONE CHANGESSEE MORE ON CODEOFMATT.COMCHANGE TO CENTRAL TIME ZONECHANGE WINDOWS TIME ZONECHANGE TIME ZONE IN FACEBOOK BEWARE THE EDGE (CASES) OF TIME! Beware the Edge (cases) of Time! Ahh, time zones. There are so many wonderful traps to fall into. Consider this bit of code, from a recent blog post by Rick Strahl: public DateTime AdjustTimeZoneOffset(DateTime localTime, TimeZoneInfo tzi = null) { var offset = tzi.GetUtcOffset(localTime).TotalHours; var offset2 =TimeZoneInfo.Local
WORKING WITH TIME ZONE NAMES IN .NET UPDATE: I've made a library to do this work for you. Read Localized time zone names in .NET. If you've ever used the TimeZoneInfo object in .Net, you'll be familiar with the following properties: timeZoneInfo.Id // "Eastern Standard Time" timeZoneInfo.StandardName // "Eastern Standard Time" timeZoneInfo.DaylightNameALL THINGS IN TIME
All Things in Time. Let's face it, we live in a world that is governed by time. We describe all kinds of things with time at different scales. At one end of the scale we might measure the creation of the universe in terms of billions or trillions of years. At the other end of the scale we might measure the movement of electrons in nanoseconds HANDLING BIRTHDAYS, AND OTHER ANNIVERSARIES The best approach for calculating calendrical periods in C# (or any .Net language) is by using the Period class in the Noda Time library: using NodaTime; Period CalculateAgeFrom(int year, int month, int day, string targetTimeZone, PeriodUnits units = PeriodUnits.YearMonthDay) { Instant now = SystemClock.Instance.Now; LocalDate today = now WHAT IS A TIME ZONE? A geographic boundary that can usually be plotted on a map. A legal name (or a common name), such as "Eastern Time". One or more rules which consist of: The effective date and time for the rule A standard offset from UTC, such as UTC-5 If the time zone uses daylight saving time: The daylight offset, such as UTC-4. BEWARE THE EDGE (CASES) OF TIME! Ahh, time zones. There are so many wonderful traps to fall into. Consider this bit of code, from a recent blog post by Rick Strahl: /// /// Converts a local machine time to the user's timezone time /// by applying the difference between the two timezones. /// /// <.NET - CODE OF MATT
.NET Five Common Daylight Saving Time Antipatterns of .NET Developers. It's 2015, and Daylight Saving Time is just around the corner. For most of North America, the clocks will "spring-forward" on Sunday, March 8th, stealing an hour of precious time from our daily TALKS - CODE OF MATT talks Seattle Code Camp 2015. I had the privelege of speaking at Seattle Code Camp this past weekend. Thanks to everyone that came out to hear me talk about time and WORKING WITH DATE AND TIME IN RAVENDB The following is an article I wrote for the knowledge base on the RavenDB web site back in August of 2013. Recently, the site was revamped and the knowledge base was removed. Since the information is still relevant, I thought it would be worth republishing here. Enjoy!Working with Date
ON THE LIFE CYCLE OF A LEAP YEAR BUG Life cycle of a leap year bug: A software developer writes code for some product or service. Again the code is tested, analyzed, etc. But unless it's done on Feb 29th, there's a non-zero chance that a leap year bug goes unnoticed. Eventually the code is released into production, or shipped to a customer. The product or service is used. WINDOWS AZURE SCHEDULER Yesterday, I posted about time zone issues with the new Windows Azure Scheduler. Shortly after, I noticed a couple of additional issues that aren't time zone related at all. There is a section of the documentation that describes recurrence patterns: "recurrence": // optional { "frequency": "week" JAVASCRIPT DATE TYPE IS HORRIBLY BROKEN JavaScript Date type is horribly broken. JavaScript dates have always been a bit funny. As a .Net developer, there was a bit of a mind-shift for me, because they are inherently different than types like DateTime or DateTimeOffset. But I won't spend too much time on what they are not, lets just talk about what they are.CODE OF MATT
Five Common Daylight Saving Time Antipatterns of .NET Developers. It's 2015, and Daylight Saving Time is just around the corner. For most of North America, the clocks will "spring-forward" on Sunday, March 8th, stealing an hour of precious time from our daily. time-zone. THE MAGIC F4 KEY IN MICROSOFT OFFICE THE F4 KEY. So what does this magic key do? It simply repeats the last command on whatever the current context is. In my case, I needed to hide multiple wedges in a pie chart. So I clicked the first wedge and navigated through the point-and-click menus to TIME ZONE ABBREVIATIONS What does the abbreviation EST mean? I'm sure you've seen that before. If you live in the United States, you might recognize it as "Eastern Standard Time", which is a time zone used in places like New York City, Washington D.C., and Miami. However, during a significantportion of
THE CASE AGAINST DATETIME.NOW One of the first things most .Net developers learn to do with DateTime is to get the current value from the system clock. DateTime now = DateTime.Now; This is probably the most horrible introduction to date and time that you could have. In my less-than-humble opinion, this isone method
HANDLING BIRTHDAYS, AND OTHER ANNIVERSARIES The best approach for calculating calendrical periods in C# (or any .Net language) is by using the Period class in the Noda Time library: using NodaTime; Period CalculateAgeFrom(int year, int month, int day, string targetTimeZone, PeriodUnits units = PeriodUnits.YearMonthDay) { Instant now = SystemClock.Instance.Now; LocalDate today = now UTC VS GMT - CODE OF MATT I'm not going to dive into a history lesson here. This is about practical, usable information in today's modern world. You can always go read more about GMT and UTC on Wikipedia. What is the difference between UTC and GMT? Essentially, nothing.Really? There is no difference? Technically, UTC is LIST OF 2020 LEAP DAY BUGSSEE MORE ON CODEOFMATT.COM ON THE TIMING OF TIME ZONE CHANGESSEE MORE ON CODEOFMATT.COMCHANGE TO CENTRAL TIME ZONECHANGE WINDOWS TIME ZONECHANGE TIME ZONE IN FACEBOOK BEWARE THE EDGE (CASES) OF TIME! Beware the Edge (cases) of Time! Ahh, time zones. There are so many wonderful traps to fall into. Consider this bit of code, from a recent blog post by Rick Strahl: public DateTime AdjustTimeZoneOffset(DateTime localTime, TimeZoneInfo tzi = null) { var offset = tzi.GetUtcOffset(localTime).TotalHours; var offset2 =TimeZoneInfo.Local
WORKING WITH TIME ZONE NAMES IN .NET UPDATE: I've made a library to do this work for you. Read Localized time zone names in .NET. If you've ever used the TimeZoneInfo object in .Net, you'll be familiar with the following properties: timeZoneInfo.Id // "Eastern Standard Time" timeZoneInfo.StandardName // "Eastern Standard Time" timeZoneInfo.DaylightNameCODE OF MATT
Five Common Daylight Saving Time Antipatterns of .NET Developers. It's 2015, and Daylight Saving Time is just around the corner. For most of North America, the clocks will "spring-forward" on Sunday, March 8th, stealing an hour of precious time from our daily. time-zone. THE MAGIC F4 KEY IN MICROSOFT OFFICE THE F4 KEY. So what does this magic key do? It simply repeats the last command on whatever the current context is. In my case, I needed to hide multiple wedges in a pie chart. So I clicked the first wedge and navigated through the point-and-click menus to TIME ZONE ABBREVIATIONS What does the abbreviation EST mean? I'm sure you've seen that before. If you live in the United States, you might recognize it as "Eastern Standard Time", which is a time zone used in places like New York City, Washington D.C., and Miami. However, during a significantportion of
THE CASE AGAINST DATETIME.NOW One of the first things most .Net developers learn to do with DateTime is to get the current value from the system clock. DateTime now = DateTime.Now; This is probably the most horrible introduction to date and time that you could have. In my less-than-humble opinion, this isone method
HANDLING BIRTHDAYS, AND OTHER ANNIVERSARIES The best approach for calculating calendrical periods in C# (or any .Net language) is by using the Period class in the Noda Time library: using NodaTime; Period CalculateAgeFrom(int year, int month, int day, string targetTimeZone, PeriodUnits units = PeriodUnits.YearMonthDay) { Instant now = SystemClock.Instance.Now; LocalDate today = now UTC VS GMT - CODE OF MATT I'm not going to dive into a history lesson here. This is about practical, usable information in today's modern world. You can always go read more about GMT and UTC on Wikipedia. What is the difference between UTC and GMT? Essentially, nothing.Really? There is no difference? Technically, UTC is LIST OF 2020 LEAP DAY BUGSSEE MORE ON CODEOFMATT.COM ON THE TIMING OF TIME ZONE CHANGESSEE MORE ON CODEOFMATT.COMCHANGE TO CENTRAL TIME ZONECHANGE WINDOWS TIME ZONECHANGE TIME ZONE IN FACEBOOK BEWARE THE EDGE (CASES) OF TIME! Beware the Edge (cases) of Time! Ahh, time zones. There are so many wonderful traps to fall into. Consider this bit of code, from a recent blog post by Rick Strahl: public DateTime AdjustTimeZoneOffset(DateTime localTime, TimeZoneInfo tzi = null) { var offset = tzi.GetUtcOffset(localTime).TotalHours; var offset2 =TimeZoneInfo.Local
WORKING WITH TIME ZONE NAMES IN .NET UPDATE: I've made a library to do this work for you. Read Localized time zone names in .NET. If you've ever used the TimeZoneInfo object in .Net, you'll be familiar with the following properties: timeZoneInfo.Id // "Eastern Standard Time" timeZoneInfo.StandardName // "Eastern Standard Time" timeZoneInfo.DaylightNameALL THINGS IN TIME
All Things in Time. Let's face it, we live in a world that is governed by time. We describe all kinds of things with time at different scales. At one end of the scale we might measure the creation of the universe in terms of billions or trillions of years. At the other end of the scale we might measure the movement of electrons in nanoseconds HANDLING BIRTHDAYS, AND OTHER ANNIVERSARIES The best approach for calculating calendrical periods in C# (or any .Net language) is by using the Period class in the Noda Time library: using NodaTime; Period CalculateAgeFrom(int year, int month, int day, string targetTimeZone, PeriodUnits units = PeriodUnits.YearMonthDay) { Instant now = SystemClock.Instance.Now; LocalDate today = now WHAT IS A TIME ZONE? A geographic boundary that can usually be plotted on a map. A legal name (or a common name), such as "Eastern Time". One or more rules which consist of: The effective date and time for the rule A standard offset from UTC, such as UTC-5 If the time zone uses daylight saving time: The daylight offset, such as UTC-4. BEWARE THE EDGE (CASES) OF TIME! Ahh, time zones. There are so many wonderful traps to fall into. Consider this bit of code, from a recent blog post by Rick Strahl: /// /// Converts a local machine time to the user's timezone time /// by applying the difference between the two timezones. /// /// <.NET - CODE OF MATT
.NET Five Common Daylight Saving Time Antipatterns of .NET Developers. It's 2015, and Daylight Saving Time is just around the corner. For most of North America, the clocks will "spring-forward" on Sunday, March 8th, stealing an hour of precious time from our daily TALKS - CODE OF MATT talks Seattle Code Camp 2015. I had the privelege of speaking at Seattle Code Camp this past weekend. Thanks to everyone that came out to hear me talk about time and WORKING WITH DATE AND TIME IN RAVENDB The following is an article I wrote for the knowledge base on the RavenDB web site back in August of 2013. Recently, the site was revamped and the knowledge base was removed. Since the information is still relevant, I thought it would be worth republishing here. Enjoy!Working with Date
ON THE LIFE CYCLE OF A LEAP YEAR BUG Life cycle of a leap year bug: A software developer writes code for some product or service. Again the code is tested, analyzed, etc. But unless it's done on Feb 29th, there's a non-zero chance that a leap year bug goes unnoticed. Eventually the code is released into production, or shipped to a customer. The product or service is used. WINDOWS AZURE SCHEDULER Yesterday, I posted about time zone issues with the new Windows Azure Scheduler. Shortly after, I noticed a couple of additional issues that aren't time zone related at all. There is a section of the documentation that describes recurrence patterns: "recurrence": // optional { "frequency": "week" JAVASCRIPT DATE TYPE IS HORRIBLY BROKEN JavaScript Date type is horribly broken. JavaScript dates have always been a bit funny. As a .Net developer, there was a bit of a mind-shift for me, because they are inherently different than types like DateTime or DateTimeOffset. But I won't spend too much time on what they are not, lets just talk about what they are.CODE OF MATT
leap-year List of 2020 Leap Day Bugs. 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. THE MAGIC F4 KEY IN MICROSOFT OFFICE In the "you learn something new every day" department, I was working in Excel today and had to look up some obscure way to manipulate a pie chart. The resource helped me solve the problem at hand, but also introduced me to a feature of Office that I'd not ever TIME ZONE ABBREVIATIONS What does the abbreviation EST mean? I'm sure you've seen that before. If you live in the United States, you might recognize it as "Eastern Standard Time", which is a time zone used in places like New York City, Washington D.C., and Miami. However, during a significantportion of
THE CASE AGAINST DATETIME.NOW One of the first things most .Net developers learn to do with DateTime is to get the current value from the system clock. DateTime now = DateTime.Now; This is probably the most horrible introduction to date and time that you could have. In my less-than-humble opinion, this isone method
HANDLING BIRTHDAYS, AND OTHER ANNIVERSARIES How old are you? Simple question, yes? Perhaps. But the answer could change depending on the granularity of the question, and on your perspective. To answer "how many minutes old are you?", we need a lot more information than might be readily available: Your date and exacttime of birthThe
LIST OF 2020 LEAP DAY BUGSSEE MORE ON CODEOFMATT.COM UTC VS GMT - CODE OF MATT I'm not going to dive into a history lesson here. This is about practical, usable information in today's modern world. You can always go read more about GMT and UTC on Wikipedia. What is the difference between UTC and GMT? Essentially, nothing.Really? There is no difference? Technically, UTC is ON THE TIMING OF TIME ZONE CHANGESSEE MORE ON CODEOFMATT.COMCHANGE TO CENTRAL TIME ZONECHANGE WINDOWS TIME ZONECHANGE TIME ZONE IN FACEBOOK BEWARE THE EDGE (CASES) OF TIME! Ahh, time zones. There are so many wonderful traps to fall into. Consider this bit of code, from a recent blog post by Rick Strahl: /// /// Converts a local machine time to the user's timezone time /// by applying the difference between the two timezones. /// /// < WORKING WITH TIME ZONE NAMES IN .NET UPDATE: I've made a library to do this work for you. Read Localized time zone names in .NET. If you've ever used the TimeZoneInfo object in .Net, you'll be familiar with the following properties: timeZoneInfo.Id // "Eastern Standard Time" timeZoneInfo.StandardName // "Eastern Standard Time" timeZoneInfo.DaylightNameCODE OF MATT
leap-year List of 2020 Leap Day Bugs. 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. THE MAGIC F4 KEY IN MICROSOFT OFFICE In the "you learn something new every day" department, I was working in Excel today and had to look up some obscure way to manipulate a pie chart. The resource helped me solve the problem at hand, but also introduced me to a feature of Office that I'd not ever TIME ZONE ABBREVIATIONS What does the abbreviation EST mean? I'm sure you've seen that before. If you live in the United States, you might recognize it as "Eastern Standard Time", which is a time zone used in places like New York City, Washington D.C., and Miami. However, during a significantportion of
THE CASE AGAINST DATETIME.NOW One of the first things most .Net developers learn to do with DateTime is to get the current value from the system clock. DateTime now = DateTime.Now; This is probably the most horrible introduction to date and time that you could have. In my less-than-humble opinion, this isone method
HANDLING BIRTHDAYS, AND OTHER ANNIVERSARIES How old are you? Simple question, yes? Perhaps. But the answer could change depending on the granularity of the question, and on your perspective. To answer "how many minutes old are you?", we need a lot more information than might be readily available: Your date and exacttime of birthThe
LIST OF 2020 LEAP DAY BUGSSEE MORE ON CODEOFMATT.COM UTC VS GMT - CODE OF MATT I'm not going to dive into a history lesson here. This is about practical, usable information in today's modern world. You can always go read more about GMT and UTC on Wikipedia. What is the difference between UTC and GMT? Essentially, nothing.Really? There is no difference? Technically, UTC is ON THE TIMING OF TIME ZONE CHANGESSEE MORE ON CODEOFMATT.COMCHANGE TO CENTRAL TIME ZONECHANGE WINDOWS TIME ZONECHANGE TIME ZONE IN FACEBOOK BEWARE THE EDGE (CASES) OF TIME! Ahh, time zones. There are so many wonderful traps to fall into. Consider this bit of code, from a recent blog post by Rick Strahl: /// /// Converts a local machine time to the user's timezone time /// by applying the difference between the two timezones. /// /// < WORKING WITH TIME ZONE NAMES IN .NET UPDATE: I've made a library to do this work for you. Read Localized time zone names in .NET. If you've ever used the TimeZoneInfo object in .Net, you'll be familiar with the following properties: timeZoneInfo.Id // "Eastern Standard Time" timeZoneInfo.StandardName // "Eastern Standard Time" timeZoneInfo.DaylightNameALL THINGS IN TIME
Let's face it, we live in a world that is governed by time. We describe all kinds of things with time at different scales. At one end of the scale we might measure the creation of the universe in terms of billions or trillions of years. At the other end HANDLING BIRTHDAYS, AND OTHER ANNIVERSARIES How old are you? Simple question, yes? Perhaps. But the answer could change depending on the granularity of the question, and on your perspective. To answer "how many minutes old are you?", we need a lot more information than might be readily available: Your date and exacttime of birthThe
DATE-TIME - CODE OF MATT leap-year List of 2020 Leap Day Bugs. 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. WHAT IS A TIME ZONE? Almost any time you call up a friend, relative, or business associate in another part of the world, you'll realize that your time isn't always the same as their time, and the reason is "time zones". You probably know a little about time zones already, but just what exactlyis
.NET - CODE OF MATT
.NET Five Common Daylight Saving Time Antipatterns of .NET Developers. It's 2015, and Daylight Saving Time is just around the corner. For most of North America, the clocks will "spring-forward" on Sunday, March 8th, stealing an hour of precious time from our daily TALKS - CODE OF MATT talks Seattle Code Camp 2015. I had the privelege of speaking at Seattle Code Camp this past weekend. Thanks to everyone that came out to hear me talk about time and ON THE LIFE CYCLE OF A LEAP YEAR BUG leap-year List of 2020 Leap Day Bugs. The following is a list of many bugs caught on or near leap day, February 29th, 2020. Each link belowreferences the
WORKING WITH DATE AND TIME IN RAVENDB The following is an article I wrote for the knowledge base on the RavenDB web site back in August of 2013. Recently, the site was revamped and the knowledge base was removed. Since the information is still relevant, I thought it would be worth republishing here. Enjoy!Working with Date
WINDOWS AZURE SCHEDULER Yesterday, I posted about time zone issues with the new Windows Azure Scheduler. Shortly after, I noticed a couple of additional issues that aren't time zone related at all. There is a section of the documentation that describes recurrence patterns: "recurrence": // optional { "frequency": "week" JAVASCRIPT DATE TYPE IS HORRIBLY BROKEN JavaScript dates have always been a bit funny. As a .Net developer, there was a bit of a mind-shift for me, because they are inherently different than types like DateTime or DateTimeOffset. But I won't spend too much time on what they are not, lets just talk about whatthey
CODE OF MATT
ADVENTURES IN PROGRAMMING, FEATURING TIME ZONES!* About the Author
leap-year
LIST OF 2020 LEAP DAY BUGS 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.*
Matt Johnson-Pint
9 min read
date-time
ON THE LIFE CYCLE OF A LEAP YEAR BUG 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*
Matt Johnson-Pint
2 min read
date-time
PLEASE DON'T CALL IT EPOCH TIME 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*
Matt Johnson-Pint
2 min read
talks
CODEMASH 2017
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. I also recorded the presentation, and you*
Matt Johnson-Pint
1 min read
time-zone
WINDOWS REGISTRY PATCH FOR EGYPT 2016 CANCELLATION OF DST As you may know if you follow my blog, I previously wrote about the recent time zone chaos in Egypt. In this post I'd like to offer some guidance on what to do*
Matt Johnson-Pint
3 min read
time-zone
TIME ZONE CHAOS INEVITABLE IN EGYPT I would like to give everyone a heads up about the situation in Egypt. There is likely to be some confusion over the next week or so about what the local time is*
Matt Johnson-Pint
7 min read
time-zone
ON THE TIMING OF TIME ZONE CHANGES What do Turkey, Chile, Russia, Venezuela, Azerbaijan, North Korea and Haiti all have in common? Time Zone Chaos! No, that's not the punchline to a joke. It's actually quite a serious problem. The*
Matt Johnson-Pint
8 min read
leap-year
LIST OF 2016 LEAP DAY BUGS 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 informationof
*
Matt Johnson-Pint
4 min read
leap-year
HAPPY NEW LEAP YEAR! 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*
Matt Johnson-Pint
10 min read
talks
CLOUD SCALABILITY AT CODEMASH AND ON CHANNEL 9 I recently spent some time talking with Seth Juarez of Channel 9 about how to design your applications to scale well in the cloud. Check out the video here! I'll also be giving*
Matt Johnson-Pint
1 min read
talks
.NET ROCKS!
"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*
Matt Johnson-Pint
1 min read
talks
SEATTLE CODE CAMP 2015 I had the privelege of speaking at Seattle Code Camp this past weekend. Thanks to everyone that came out to hear me talk about time and time zones, including Noda Time and Moment.*
Matt Johnson-Pint
1 min read
talks
HANSELMINUTES
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.*
Matt Johnson-Pint
1 min read
JavaScript
JAVASCRIPT DATE PARSING CHANGES IN ES6 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("
*
Matt Johnson-Pint
3 min read
.NET
BEWARE THE EDGE (CASES) OF TIME! Ahh, time zones. There are so many wonderful traps to fall into. Consider this bit of code, from a recent blog post by Rick Strahl: ///*
Matt Johnson-Pint
8 min read
.NET
FIVE COMMON DAYLIGHT SAVING TIME ANTIPATTERNS OF .NET DEVELOPERS It's 2015, and Daylight Saving Time is just around the corner. For most of North America, the clocks will "spring-forward" on Sunday, March 8th, stealing an hour of precious time from our daily*
Matt Johnson-Pint
9 min read
time-zone
WHAT IS A TIME ZONE? Almost any time you call up a friend, relative, or business associate in another part of the world, you'll realize that your time isn't always the same as their time, and the reason*
Matt Johnson-Pint
7 min read
RavenDB
WORKING WITH DATE AND TIME IN RAVENDB The following is an article I wrote for the knowledge base on the RavenDB web site back in August of 2013. Recently, the site was revamped and the knowledge base was removed. Since*
Matt Johnson-Pint
13 min read
productivity
THE MAGIC F4 KEY IN MICROSOFT OFFICE In the "you learn something new every day" department, I was working in Excel today and had to look up some obscure way to manipulate a pie chart. The resource helped me solve*
Matt Johnson-Pint
1 min read
.NET
LOCALIZED TIME ZONE NAMES IN .NET If you've ever used the TimeZoneInfo class in the .NET framework, you probably know that it has properties intended for display of a time zone to the end user. Specifically, these are the*
Matt Johnson-Pint
3 min read
time-zone
RUSSIA 2014 TIME ZONE CHANGES Are you prepared for Russia's major time zone changes? If you are either in Russia yourself, or interact with Russian customers or users, you will need to ensure your time zone data has*
Matt Johnson-Pint
1 min read
talks
PLURALSIGHT - DATE AND TIME FUNDAMENTALS I'm happy to announce that the video course I've been working on for Pluralsight, "Date and Time Fundamentals" has finally been released! Here's one of my favorite slides: But seriously - There's a*
Matt Johnson-Pint
1 min read
talks
SEATTLE CODE CAMP
I'll be speaking this Saturday at Seattle Code Camp about several issues that time zones can create in your applications. If you are near the Puget Sound area, please come out and see*
Matt Johnson-Pint
1 min read
time-zone
UTC VS GMT
I'm not going to dive into a history lesson here. This is about practical, usable information in today's modern world. You can always go read more about GMT and UTC on Wikipedia. What*
Matt Johnson-Pint
1 min read
time-zone
EGYPT GOES BACK TO DAYLIGHT SAVING TIME With only a week's notice, the government of Egypt has decided to go back to daylight saving time - effective today. That's right, it was casually announced on May 7th, and went into*
Matt Johnson-Pint
1 min read
Code of Matt © 2020 Latest PostsTwitter Ghost
Details
Copyright © 2024 ArchiveBay.com. All rights reserved. Terms of Use | Privacy Policy | DMCA | 2021 | Feedback | Advertising | RSS 2.0