For ease of maintainability this project has moved from this gist to its own repository. You can go and visit it there.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/usr/share/zoneinfo/Hongkong | |
> Wed Jan 01 2014 00:00:00 GMT+0800 (HKT) | |
> Mon Sep 01 2014 00:00:00 GMT+0800 (HKT) | |
/usr/share/zoneinfo/Pacific/Easter | |
> Wed Jan 01 2014 00:00:00 GMT-0500 (EASST) | |
> Mon Sep 01 2014 00:00:00 GMT-0600 (EAST) | |
/usr/share/zoneinfo/Pacific/Norfolk | |
> Wed Jan 01 2014 00:00:00 GMT+1130 (NFT) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// found here http://forums.shopify.com/categories/2/posts/29259 | |
var getOrdinal = function(n) { | |
var s=["th","st","nd","rd"], | |
v=n%100; | |
return n+(s[(v-20)%10]||s[v]||s[0]); | |
} |