mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
parent
bc352cdb65
commit
80ebec3122
2 changed files with 2 additions and 5 deletions
|
|
@ -118,14 +118,11 @@ proc getJoinDateFull*(profile: Profile): string =
|
|||
profile.joinDate.format("h:mm tt - d MMM YYYY")
|
||||
|
||||
proc getTime*(tweet: Tweet): string =
|
||||
tweet.time.format("d/M/yyyy', 'HH:mm:ss")
|
||||
tweet.time.format("h:mm tt' · 'MMM d', 'YYYY 'UTC'")
|
||||
|
||||
proc getRfc822Time*(tweet: Tweet): string =
|
||||
tweet.time.format("ddd', 'dd MMM yyyy HH:mm:ss 'GMT'")
|
||||
|
||||
proc getTweetTime*(tweet: Tweet): string =
|
||||
tweet.time.format("h:mm tt' · 'MMM d', 'YYYY")
|
||||
|
||||
proc getShortTime*(tweet: Tweet): string =
|
||||
let now = now()
|
||||
let since = now - tweet.time
|
||||
|
|
|
|||
Loading…
Reference in a new issue