All Samples(9236) | Call(8414) | Derive(0) | Import(822)
strftime(format[, tuple]) -> string Convert a time tuple to a string according to a format specification. See the library reference manual for formatting codes. When the time tuple is not present, current time as returned by localtime() is used.
src/c/u/CUV-HEAD/examples/rbm/ais/ais.py CUV(Download)
sys.path.append("..")
import time
from time import strftime
import os
import cuv_python as cp
stats['basename'] = self.cfg.path
stats['bindex' ] = self.cfg.postfix
stats['ais_host'] = os.uname()[1]
stats['ais_time' ] = strftime("%Y-%m-%d %H:%M:%S")
stats['ais_duration'] = end_time - start_time
with open(fn,"wb") as f:
src/c/g/cgru-HEAD/examples/scripts/task.py cgru(Download)
signal.signal( signal.SIGABRT, interrupt)
signal.signal( signal.SIGINT, interrupt)
from time import strftime
print 'Started at ' + strftime('%A %d %B %H:%M:%S')
from optparse import OptionParser
#print parsers.parser.str_error
#print parsers.parser.str_badresult
sys.stdout.flush()
print 'Finished at ' + strftime('%A %d %B %H:%M:%S')
src/c/u/CUV-HEAD/examples/rbm/analyse/calc_part_func.py CUV(Download)
import getopt
import sys
import os
from time import strftime
sys.path.append(".")
sys.path.append("..")
stats['bindex' ] = cfg.idx
stats['cpf_host'] = os.uname()[1]
stats['cpf_duration'] = end_time - start_time
stats['cpf_time' ] = strftime("%Y-%m-%d %H:%M:%S")
with open(fn,"wb") as f:
cPickle.dump(stats,f)
src/g/d/gdata-python-client-HEAD/samples/oauth/oauth_on_appengine/appengine_utilities/sessions.py gdata-python-client(Download)
import Cookie import pickle import __main__ from time import strftime import logging # google appengine imports
def no_cache_headers(self):
"""
Adds headers, avoiding any page caching in the browser. Useful for highly
dynamic sites.
"""
print "Expires: Tue, 03 Jul 2001 06:00:00 GMT"
print strftime("Last-Modified: %a, %d %b %y %H:%M:%S %Z")
src/g/o/google-data-api-HEAD/samples/oauth/oauth_on_appengine/appengine_utilities/sessions.py google-data-api(Download)
import Cookie import pickle import __main__ from time import strftime import logging # google appengine imports
def no_cache_headers(self):
"""
Adds headers, avoiding any page caching in the browser. Useful for highly
dynamic sites.
"""
print( "Expires: Tue, 03 Jul 2001 06:00:00 GMT")
print( strftime("Last-Modified: %a, %d %b %y %H:%M:%S %Z"))
src/g/d/gdata-python-client-HEAD/samples/oauth/oauth_on_appengine/appengine_utilities/flash.py gdata-python-client(Download)
import sys import Cookie import pickle from time import strftime from django.utils import simplejson
def no_cache_headers(self):
"""
Adds headers, avoiding any page caching in the browser. Useful for highly
dynamic sites.
"""
print "Expires: Tue, 03 Jul 2001 06:00:00 GMT"
print strftime("Last-Modified: %a, %d %b %y %H:%M:%S %Z")
src/g/o/google-data-api-HEAD/samples/oauth/oauth_on_appengine/appengine_utilities/flash.py google-data-api(Download)
import sys import Cookie import pickle from time import strftime from django.utils import simplejson
def no_cache_headers(self):
"""
Adds headers, avoiding any page caching in the browser. Useful for highly
dynamic sites.
"""
print "Expires: Tue, 03 Jul 2001 06:00:00 GMT"
print strftime("Last-Modified: %a, %d %b %y %H:%M:%S %Z")
src/p/y/pymilter-0.9.3/sample.py pymilter(Download)
import mime
import Milter
import tempfile
from time import strftime
#import syslog
#syslog.openlog('milter')
class sampleMilter(Milter.Milter):
"Milter to replace attachments poisonous to Windows with a WARNING message."
def log(self,*msg):
print "%s [%d]" % (strftime('%Y%b%d %H:%M:%S'),self.id),
src/a/p/appscript-HEAD/py-appscript/trunk/appscript_3x/sample/aem/make_and_set.py appscript(Download)
#!/usr/bin/env python3 # create new TextEdit document containing 'Hello World' and current time from time import strftime from aem import *
src/a/p/appscript-HEAD/py-appscript/trunk/appscript_2x/sample/aem/make_and_set.py appscript(Download)
#!/usr/bin/env python # create new TextEdit document containing 'Hello World' and current time from time import strftime from aem import *
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 Next