Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)
Given a time in seconds since the epoch, returns a date value suitable
for use as part of a filename, in YYYYMMDD format.  Defaults to the
current time.

        def formatFnameDate(when=None):
    """Given a time in seconds since the epoch, returns a date value suitable
       for use as part of a filename, in YYYYMMDD format.  Defaults to the
       current time."""
    if when is None:
        when = time.time()
    return time.strftime("%Y%m%d", time.localtime(when))
        


src/m/i/mixminion-HEAD/lib/mixminion/server/Pinger.py   mixminion(Download)
import mixminion.server.MMTPServer
 
from mixminion.Common import MixError, AtomicFile, ceilDiv, createPrivateDir, \
     floorDiv, formatBase64, formatFnameDate, formatTime, IntervalSet, LOG, \
     parseFnameDate, previousMidnight, readPickled, secureDelete, \