public long GetTimeLikeJS() { long lLeft = 621355968000000000; DateTime dt = DateTime.Now; long Sticks = (dt.Ticks - lLeft) / 10000; return Sticks; } 完美模拟JS中的:
var d = new Date(); var ticks = d.getTime();