def getStartEndOfWebPage(): """ Returns the time of the first graphics to be shown on the web page and the time of the last graphic to be displayed. """ currentTime = StatsDateLib.getIsoFromEpoch(time.time()) start = StatsDateLib.rewindXDays(currentTime, (NB_YEARS_DISPLAYED - 1) * 365) start = StatsDateLib.getIsoTodaysMidnight(start) end = StatsDateLib.getIsoTodaysMidnight(currentTime) return start, end
def getStartEndOfWebPage(): """ @summary : Returns the time of the first graphics to be shown on the web page and the time of the last graphic to be displayed. @return : Start,end tuple both in ISO format. """ currentTime = StatsDateLib.getIsoFromEpoch(time.time()) start = StatsDateLib.rewindXDays(currentTime, NB_DAYS_DISPLAYED - 1) start = StatsDateLib.getIsoTodaysMidnight(start) end = StatsDateLib.getIsoTodaysMidnight(currentTime) return start, end
def getStartEndOfWebPage(): """ @summary : Returns the time of the first graphics to be shown on the web page and the time of the last graphic to be displayed. @return : Start,end tuple both in ISO format. """ currentTime = StatsDateLib.getIsoFromEpoch( time.time() ) start = StatsDateLib.rewindXDays( currentTime, NB_DAYS_DISPLAYED - 1 ) start = StatsDateLib.getIsoTodaysMidnight( start ) end = StatsDateLib.getIsoTodaysMidnight( currentTime ) return start, end
def getStartEndOfWebPage(): """ Returns the time of the first graphics to be shown on the web page and the time of the last graphic to be displayed. """ currentTime = StatsDateLib.getIsoFromEpoch( time.time() ) start = StatsDateLib.rewindXDays( currentTime, ( NB_YEARS_DISPLAYED - 1 ) * 365 ) start = StatsDateLib.getIsoTodaysMidnight( start ) end = StatsDateLib.getIsoTodaysMidnight( currentTime ) return start, end