from relativeDates import *
import time
x = time.time() - 1000
getRelativeTime(x)
x -= 12345
getRelativeTime(x)
x += 543211
getRelativeTime(x)
getRelativeTime(x, accuracy=2)
x -= 987661
getRelativeTime(x, accuracy=2)
getRelativeTime(x, accuracy=2, alternative_past='long long ago')
getRelativeTimeStr('07/15/06 1823')
getRelativeTimeStr('07/10/06 1823')
getRelativeTimeStr('07/10/06 1823', accuracy=2)
Форматирование даты в стиле gmail в python