Merge pull request #213 from gurjeet/use_getFullYearInExample

Use JS Date's getFullYear() in first example.
This commit is contained in:
Brian C 2012-11-03 14:01:15 -07:00
commit aa242b028b

View File

@ -23,7 +23,7 @@ var conString = "tcp://postgres:1234@localhost/postgres";
pg.connect(conString, function(err, client) {
client.query("SELECT NOW() as when", function(err, result) {
console.log("Row count: %d",result.rows.length); // 1
console.log("Current year: %d", result.rows[0].when.getYear());
console.log("Current year: %d", result.rows[0].when.getFullYear());
});
});
```