Skip to content

roycms/TimeAgo

Repository files navigation

TimeAgo

TimeAgo 时间友好提示

use

import TimeAgo
     print("\timeage:\n\(NSDate().timeAgo)")
     print("\timeage:\n\(1489552542.timeAgo)")

     ----->>>>  timeage: Just now
     ----->>>>  timeage: 3 days ago

TODO

增加国际化支持