diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2015-04-15 01:26:37 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2016-10-26 14:14:57 +0900 |
commit | 25762dba96762baf54bacc6531dad709a97123a7 (patch) | |
tree | 51e13a6ed69c1d920294836e23ec5d61efafbee7 | |
parent | 20d1f37d5299f1ee1c8bd9daf5189154645f5f23 (diff) | |
download | mikutter-25762dba96762baf54bacc6531dad709a97123a7.tar.gz |
MiraclePainter で表示する時刻をミリ秒単位まで
-rw-r--r-- | core/mui/cairo_miracle_painter.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/mui/cairo_miracle_painter.rb b/core/mui/cairo_miracle_painter.rb index 8c038605..c86a8fb5 100644 --- a/core/mui/cairo_miracle_painter.rb +++ b/core/mui/cairo_miracle_painter.rb @@ -342,10 +342,11 @@ class Gdk::MiraclePainter < Gtk::Object def timestamp_label now = Time.now + mtime = Time.at(((message[:id]>>22)+1288834974657)/1000.0) rescue now if message[:created].year == now.year && message[:created].month == now.month && message[:created].day == now.day - Pango.escape(message[:created].strftime('%H:%M:%S')) + Pango.escape(mtime.strftime('%H:%M:%S.%L')) else - Pango.escape(message[:created].strftime('%Y/%m/%d %H:%M:%S')) + Pango.escape(mtime.strftime('%Y/%m/%d %H:%M:%S.%L')) end end |