RSS

Tag Archives: dates

Specifying Business Hours

Long ago I worked on a project where we needed to specify the hours that a business was going to be open, and to account for all the various difficulties around holidays and other special days. This is what we came up with and it still stands today. Read the rest of this entry »

Advertisements
 
Leave a comment

Posted by on September 21, 2015 in Coding, Design

 

Tags: , , , , ,

JSON/REST API – Handling Dates

In this post, I lay out the reason that you should always transfer dates in a JSON/REST API as an integer epoch value: the number of milliseconds since Jan 1, 1970. If you think it should be anything else, please read on….
Read the rest of this entry »

 
Leave a comment

Posted by on June 10, 2015 in Coding, Design

 

Tags: , , , , , ,

Storing Date Values in Files

XML and JSON files store and transport data. ¬†What is the best way to store a Date-Time value? Always, always, always use the integer epoch format: the number of milliseconds since Jan 1, 1970 UTC. This post tells you why. Read the rest of this entry »

 
1 Comment

Posted by on January 17, 2014 in Coding

 

Tags: , , ,