[英]Working with Jquery timeago plugin
I am working with Timeago plugin. 我正在使用Timeago插件。
What can I do in order to us this kind of timestamp 2012-03-14 22:17:48?
为了给我们提供这种时间戳
2012-03-14 22:17:48?
我该怎么办2012-03-14 22:17:48?
Also 也
Javascript new Date()
gives me Thu Mar 14 2012 23:24:51 GMT-0600 (MDT)
which is my correct time. Javascript新的
Date()
给了我Thu Mar 14 2012 23:24:51 GMT-0600 (MDT)
,这是我的正确时间。
I have the following for Timeage: 对于时间,我有以下几点:
<abbr class="timeago" title="2012-03-14T22:17:48Z"></abbr>
Yet it is telling me it was posted "a day ago", which is actually about an hour and 7 minutes... What could be going wrong? 但是,这告诉我它是在“一天前”发布的,实际上大约是一个小时7分钟……这可能是怎么回事?
I used easy date it works great add script easydate-0.2.4.js then include 我使用了简单的日期,它很好用,添加脚本easydate-0.2.4.js,然后包含
<abbr class="easydate">
@Model.LastseenDate
</abbr>
If you use Livestamp.js , you can do something like this: 如果使用Livestamp.js ,则可以执行以下操作:
<abbr class="livestamp"></abbr>
<script>
$('.livestamp').livestamp(new Date('2012-03-14 22:17:48'));
</script>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.