Skip to content

Instantly share code, notes, and snippets.

@oivoodoo
Created August 11, 2011 14:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oivoodoo/1139864 to your computer and use it in GitHub Desktop.
Save oivoodoo/1139864 to your computer and use it in GitHub Desktop.
(function(global) {
global.DateTime = DateTime = {};
DateTime.instance = (function() {
return {
getTime: function(date, offset, format) {
var date = new Date(date.getTime() + offset * 1000);
return date.getUTCHours() + ":" + date.getUTCMinutes();
}
};
})();
})(window);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment