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 date as generated by formatFnameTime, return a (long) time
value for midnight on that date.

        def parseFnameDate(s):
    """Given a date as generated by formatFnameTime, return a (long) time
       value for midnight on that date."""
    if len(s) != 8:
        raise ValueError("Invalid filename date %r (wrong length)"%s)
    try:
        yyyy = int(s[:4])
        MM = int(s[4:6])
        dd = int(s[6:])
    except ValueError:
        raise ValueError("Invalid filename date %r (contains noninteger)"%s)

    return calendar.timegm((yyyy,MM,dd,0,0,0,0,0,0))
        


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, \