AppleScript名:epoch timeをdateに変換 |
— Created 2017-12-19 by Takaaki Naganoya — 2017 Piyomaru Software use AppleScript version "2.4" use scripting additions use framework "Foundation" set epochTimeStr to current application’s NSString’s stringWithString:"1401325412" set aDate to (current application’s NSDate’s alloc()’s initWithTimeIntervalSince1970:(epochTimeStr’s doubleValue())) as date –> (NSDate) 2014-05-29 01:03:32 +0000 –> date "2014年5月29日木曜日 10:03:32" |
More from my site
(Visited 47 times, 1 visits today)