Rename createdAt -> creationDate (#628)

* Rename createdAt -> creationDate

Also make it return a Date like it says, and small cleanup

* Build docs
This commit is contained in:
Schuyler Cebulskie
2016-09-06 16:52:10 -04:00
committed by GitHub
parent 6bfad00229
commit 7fea0a3937
7 changed files with 21 additions and 28 deletions

View File

@@ -54,12 +54,12 @@ class User {
}
/**
* The unix timestamp the user was created
* The time the user was created
* @readonly
* @type {Date}
*/
get createdAt() {
return new Date((+this.id / 4194304) + 1420070400000).getTime();
get creationDate() {
return new Date((this.id / 4194304) + 1420070400000);
}
/**