Ember computed property that observes current time

Viewed 2231

Is there a way to have a computed property observe the current time (for use in a timestamp)?

For example in my controller I might have a method that looked something like this:

formatLastUpdated:function() {
    return moment(this.get("model.update_ts")).fromNow();
}.property("model.update_ts", "date.now?"),
2 Answers
Related