Tuesday, December 4, 2018

UNIX Epoch time

This is a count of the number of seconds that have elapsed since the beginning of the year 1970. In 2038 an Int32 type in C# will no longer be able to contain the number and horrible things will happen, horrible being a subjective term. The capital X in datetime formatting in moment.js returns this value like so:

alert(moment().format.("X"));

No comments:

Post a Comment