def timestampToFormatDate(timestamp,dateFormat = "%Y-%m-%d %H:%M:%S"): return Date.timestampToFormatDate(timestamp,dateFormat)
def getOffsetDateDay(date, offsetDay, dateFormat = "%Y%m%d"): offsetDate = Date.offsetDateDay(date, offsetDay ,dateFormat) return Date.dateToFormatDate(offsetDate,"%Y-%m-%d",dateFormat)
def getCurrentTime(): return Date.timestampToFormatDate(Date.getTimestamp(),"%Y-%m-%d %H:%M:%S")
def getTimestamp(): return Date.getTimestamp()
def getTomorrowByYmd(): timestamp = Date.getOffsetDate(1) return Date.timestampToFormatDate(timestamp,"%Y-%m-%d")
def dateToFormatYmd(date): return Date.dateToFormatDate(date,"%Y%m%d","%Y-%m-%d")
def getTomorrow(): timestamp = Date.getOffsetDate(1) return Date.timestampToFormatDate(timestamp,"%Y%m%d")
def getTodayByYmd(): timestamp = Date.getOffsetDate(0) return Date.timestampToFormatDate(timestamp,"%Y-%m-%d")
def getToday(): timestamp = Date.getOffsetDate(0) return Date.timestampToFormatDate(timestamp,"%Y%m%d")
def getYesterdayByYmd(): timestamp = Date.getOffsetDate(-1) return Date.timestampToFormatDate(timestamp,"%Y-%m-%d")
def getYesterday(): timestamp = Date.getOffsetDate(-1) return Date.timestampToFormatDate(timestamp,"%Y%m%d")