javascript - I am using the Angular "Date" filter, but what is this numerical expression? -


in angular tutorial there example of date filter being used this:

{{ 1304375948024 | date }} -->  may 2, 2011` 

what notation of expression 1304375948024?

that unix timestamp, measure of number of seconds have elapsed since unix epoch, defined 00:00:00 utc on 1 january 1970

check out epoch converter shows 1304375948024 represents mon, 02 may 2011 22:39:08 gmt

as pointed out @psl in comment - type of value receive standard javascript date.prototype.gettime(). note in javascript, value in milliseconds , not seconds.


Comments

Popular posts from this blog

java - Solr query version issue: Invalid version or the data in not in 'javabin' format -

Hard vs. Soft Water: What's The Difference?

The Ten Most Livable Cities In The World