と組み合わせようとしてtimeago
います。datejs (with help of this to get format for local time)
私は以下をtimeago
使用します:
jQuery(document).ready(function() {
jQuery("abbr.timeago").timeago();
});
localtime
私はこれを使用します:
jQuery(document).ready(function() {
$('.UTCTimestamp').localTimeFromUTC('MM/dd/yyyy hh:mm:ss');
});
これら2つを組み合わせるにはどうすればよいですか?現在、次のように一度に1つしか使用できません。
タイムアゴの場合:
<span class='UTCTimestamp'>2011-09-09 10:10:10</span>
そして現地時間。
<abbr class='timeago' title='2011-09-09 10:10:10'>2011-09-09 10:10:10</abbr>