Exemplo n.º 1
0
def isYesterday(strDate):
    yesterday = localdate.beforeDays(1)
    return strDate == localdate.strDate(yesterday)
Exemplo n.º 2
0
def _getStrDateBeforeDays(days):
    timestamp = localdate.beforeDays(days)
    return localdate.strDate(timestamp)