Skip to content

Instantly share code, notes, and snippets.

@tranquan
Created November 30, 2017 03:58
Show Gist options
  • Save tranquan/4d7744f2807cf6fe8457461263109b36 to your computer and use it in GitHub Desktop.
Save tranquan/4d7744f2807cf6fe8457461263109b36 to your computer and use it in GitHub Desktop.
createTimeMoment() {
if (!this.mCreateTimeMoment) {
this.mCreateTimeMoment = moment(this.createTime, 'X');
}
return this.mCreateTimeMoment;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment