var assert = require('assert');

// The 'index.js' file extends "Date.prototype"
require('./');


var d = new Date(Date.UTC(2011, 0, 1));

assert.equal(d.getUTCFullYear(), 2011);
assert.equal(d.getUTCMonth(), 0);
assert.equal(d.getUTCDate(), 1);


d.setTimeZone("UTC");
console.log("UTC Hours: " + d.getHours());
assert.equal(d.getUTCDay(), d.getDay());
assert.equal(d.getUTCDate(), d.getDate());
assert.equal(d.getUTCFullYear(), d.getFullYear());
assert.equal(d.getUTCHours(), d.getHours());
assert.equal(d.getUTCMilliseconds(), d.getMilliseconds());
assert.equal(d.getUTCMinutes(), d.getMinutes());
assert.equal(d.getUTCMonth(), d.getMonth());
assert.equal(d.getUTCSeconds(), d.getSeconds());


d.setTimeZone("America/Los_Angeles");
console.log("LA Hours: " + d.getHours());
assert.equal(d.getHours(), 16);


d.setTimeZone("America/New_York");
console.log("NY Hours: " + d.getHours());
assert.equal(d.getHours(), 19);

var assert = require('assert');

// The 'index.js' file extends "Date.prototype"
require('./');


var d = new Date(Date.UTC(2011, 0, 1));

assert.equal(d.getUTCFullYear(), 2011);
assert.equal(d.getUTCMonth(), 0);
assert.equal(d.getUTCDate(), 1);


d.setTimeZone("UTC");
console.log("UTC Hours: " + d.getHours());
assert.equal(d.getUTCDay(), d.getDay());
assert.equal(d.getUTCDate(), d.getDate());
assert.equal(d.getUTCFullYear(), d.getFullYear());
assert.equal(d.getUTCHours(), d.getHours());
assert.equal(d.getUTCMilliseconds(), d.getMilliseconds());
assert.equal(d.getUTCMinutes(), d.getMinutes());
assert.equal(d.getUTCMonth(), d.getMonth());
assert.equal(d.getUTCSeconds(), d.getSeconds());


d.setTimeZone("America/Los_Angeles");
console.log("LA Hours: " + d.getHours());
assert.equal(d.getHours(), 16);


d.setTimeZone("America/New_York");
console.log("NY Hours: " + d.getHours());
assert.equal(d.getHours(), 19);


d.setTimeZone("US/Arizona");
console.log("AZ Hours: " + d.getHours());
assert.equal(d.getHours(), 17);

Add another test zone.