All Samples(5843) | Call(5208) | Derive(0) | Import(635)
gmtime([seconds]) -> (tm_year, tm_mon, tm_mday, tm_hour, tm_min,
tm_sec, tm_wday, tm_yday, tm_isdst)
Convert seconds since the Epoch to a time tuple expressing UTC (a.k.a.
GMT). When 'seconds' is not passed in, convert the current time instead.src/p/y/pydusa-HEAD/pydusa/mympi/mpi_tests/mpi2Examples/worker.py pydusa(Download)
#!/usr/bin/env python import numpy from numpy import * import mpi import sys from time import gmtime, time,sleep def stamp(): timeTuple = gmtime(time())[1:6]
src/d/i/dispcalgui-HEAD/trunk/setup.py dispcalgui(Download)
from distutils.sysconfig import get_python_lib from distutils.util import change_root, get_platform from subprocess import call, Popen from time import gmtime, strftime, timezone import codecs import glob import math
mtime = os.stat(pth).st_mtime
if mtime > lastmod_time:
lastmod_time = mtime
timestamp = time.gmtime(mtime)
schedule = entry.getElementsByTagName("schedule")
if schedule:
schedule = schedule[0].firstChild.wholeText.strip()
if schedule != "normal":
print schedule.upper()[0] + " " * 6, pth
mod = True
mtime = os.stat(pth).st_mtime
if mtime > lastmod_time:
lastmod_time = mtime
timestamp = time.gmtime(mtime)
buildtime = time.time()
versionpy.write("BUILD_DATE = %r\n" %
(strftime("%Y-%m-%dT%H:%M:%S",
gmtime(buildtime)) +
str(round(buildtime - int(buildtime), 6))[1:] +
"Z"))
if lastmod:
for key, val in [
("DATE",
strftime("%Y-%m-%d",
gmtime(lastmod_time or
os.stat(readme_template_path).st_mtime))),
("TIME",
strftime("%H:%M",
gmtime(lastmod_time or
os.stat(readme_template_path).st_mtime))),
("TIMESTAMP",
strftime("%Y-%m-%dT%H:%M:%S",
gmtime(lastmod_time or
gmtime(lastmod_time or
os.stat(readme_template_path).st_mtime)) +
("+" if timezone < 0 else "-") +
strftime("%H:%M", gmtime(abs(timezone)))),
("VERSION", version),
("VERSION_LIN", version_lin),
("VERSION_MAC", version_mac),
for key, val in [
("DATE",
strftime("%a %b %d %Y", # e.g. Tue Jul 06 2010
gmtime(lastmod_time or
os.stat(tmpl_path).st_mtime))),
("DEBPACKAGE", name.lower()),
("DEBDATETIME", strftime("%a, %d %b %Y %H:%M:%S ", # e.g. Wed, 07 Jul 2010 15:25:00 +0100
gmtime(lastmod_time or
os.stat(tmpl_path).st_mtime)) +
("+" if timezone < 0 else "-") +
strftime("%H%M", gmtime(abs(timezone)))),
("VERSION", version_src),
("URL", "http://%s.hoech.net/" % name),
("WX_MINVERSION", ".".join(str(n) for n in wx_minversion)),
("YEAR", strftime("%Y", gmtime())),
]:
tmpl_data = tmpl_data.replace("${%s}" % key, val)
if tmpl_name.startswith("debian"):
src/d/i/dispcalgui-HEAD/setup.py dispcalgui(Download)
from distutils.sysconfig import get_python_lib from distutils.util import change_root, get_platform from subprocess import call, Popen from time import gmtime, strftime, timezone import codecs import glob import math
mtime = os.stat(pth).st_mtime
if mtime > lastmod_time:
lastmod_time = mtime
timestamp = time.gmtime(mtime)
schedule = entry.getElementsByTagName("schedule")
if schedule:
schedule = schedule[0].firstChild.wholeText.strip()
if schedule != "normal":
print schedule.upper()[0] + " " * 6, pth
mod = True
mtime = os.stat(pth).st_mtime
if mtime > lastmod_time:
lastmod_time = mtime
timestamp = time.gmtime(mtime)
buildtime = time.time()
versionpy.write("BUILD_DATE = %r\n" %
(strftime("%Y-%m-%dT%H:%M:%S",
gmtime(buildtime)) +
str(round(buildtime - int(buildtime), 6))[1:] +
"Z"))
if lastmod:
for key, val in [
("DATE",
strftime("%Y-%m-%d",
gmtime(lastmod_time or
os.stat(readme_template_path).st_mtime))),
("TIME",
strftime("%H:%M",
gmtime(lastmod_time or
os.stat(readme_template_path).st_mtime))),
("TIMESTAMP",
strftime("%Y-%m-%dT%H:%M:%S",
gmtime(lastmod_time or
gmtime(lastmod_time or
os.stat(readme_template_path).st_mtime)) +
("+" if timezone < 0 else "-") +
strftime("%H:%M", gmtime(abs(timezone)))),
("VERSION", version),
("VERSION_LIN", version_lin),
("VERSION_MAC", version_mac),
for key, val in [
("DATE",
strftime("%a %b %d %Y", # e.g. Tue Jul 06 2010
gmtime(lastmod_time or
os.stat(tmpl_path).st_mtime))),
("DEBPACKAGE", name.lower()),
("DEBDATETIME", strftime("%a, %d %b %Y %H:%M:%S ", # e.g. Wed, 07 Jul 2010 15:25:00 +0100
gmtime(lastmod_time or
os.stat(tmpl_path).st_mtime)) +
("+" if timezone < 0 else "-") +
strftime("%H%M", gmtime(abs(timezone)))),
("VERSION", version_src),
("URL", "http://%s.hoech.net/" % name),
("WX_MINVERSION", ".".join(str(n) for n in wx_minversion)),
("YEAR", strftime("%Y", gmtime())),
]:
tmpl_data = tmpl_data.replace("${%s}" % key, val)
if tmpl_name.startswith("debian"):
src/s/a/sage-HEAD/trunk/local/lib/python2.4/tzparse.py sage(Download)
import time
(tzname, delta, dstname, daystart, hourstart, dayend, hourend) = params
year, month, days, hours, mins, secs, yday, wday, isdst = \
time.gmtime(secs - delta*3600)
if (daystart, hourstart) <= (yday+1, hours) < (dayend, hourend):
tzname = dstname
hours = hours + 1
(tzname, delta, dstname, daystart, hourstart, dayend, hourend) = \
tzparams
year, month, days, hours, mins, secs, yday, wday, isdst = \
time.gmtime(secs - delta*3600)
return (daystart, hourstart) <= (yday+1, hours) < (dayend, hourend)
tzset()
def localtime(secs):
"""Get the local time in the current timezone."""
return tzlocaltime(secs, tzparams)
def test():
from time import asctime, gmtime
print 'now =', now, '=', asctime(tm), x[-1]
now = now - now % (24*3600)
if sys.argv[1:]: now = now + eval(sys.argv[1])
x = gmtime(now)
tm = x[:-1] + (0,)
print 'gmtime =', now, '=', asctime(tm), 'yday =', x[-2]
jan1 = now - x[-2]*24*3600
src/s/a/sage-HEAD/local/lib/python2.4/tzparse.py sage(Download)
import time
(tzname, delta, dstname, daystart, hourstart, dayend, hourend) = params
year, month, days, hours, mins, secs, yday, wday, isdst = \
time.gmtime(secs - delta*3600)
if (daystart, hourstart) <= (yday+1, hours) < (dayend, hourend):
tzname = dstname
hours = hours + 1
(tzname, delta, dstname, daystart, hourstart, dayend, hourend) = \
tzparams
year, month, days, hours, mins, secs, yday, wday, isdst = \
time.gmtime(secs - delta*3600)
return (daystart, hourstart) <= (yday+1, hours) < (dayend, hourend)
tzset()
def localtime(secs):
"""Get the local time in the current timezone."""
return tzlocaltime(secs, tzparams)
def test():
from time import asctime, gmtime
print 'now =', now, '=', asctime(tm), x[-1]
now = now - now % (24*3600)
if sys.argv[1:]: now = now + eval(sys.argv[1])
x = gmtime(now)
tm = x[:-1] + (0,)
print 'gmtime =', now, '=', asctime(tm), 'yday =', x[-2]
jan1 = now - x[-2]*24*3600
src/x/b/xbmc-HEAD/xbmc/lib/libPython/Python/Lib/tzparse.py xbmc(Download)
import time
(tzname, delta, dstname, daystart, hourstart, dayend, hourend) = params
year, month, days, hours, mins, secs, yday, wday, isdst = \
time.gmtime(secs - delta*3600)
if (daystart, hourstart) <= (yday+1, hours) < (dayend, hourend):
tzname = dstname
hours = hours + 1
(tzname, delta, dstname, daystart, hourstart, dayend, hourend) = \
tzparams
year, month, days, hours, mins, secs, yday, wday, isdst = \
time.gmtime(secs - delta*3600)
return (daystart, hourstart) <= (yday+1, hours) < (dayend, hourend)
tzset()
def localtime(secs):
"""Get the local time in the current timezone."""
return tzlocaltime(secs, tzparams)
def test():
from time import asctime, gmtime
print 'now =', now, '=', asctime(tm), x[-1]
now = now - now % (24*3600)
if sys.argv[1:]: now = now + eval(sys.argv[1])
x = gmtime(now)
tm = x[:-1] + (0,)
print 'gmtime =', now, '=', asctime(tm), 'yday =', x[-2]
jan1 = now - x[-2]*24*3600
src/p/y/Pydev-HEAD/plugins/org.python.pydev.jython/Lib/tzparse.py Pydev(Download)
import time
(tzname, delta, dstname, daystart, hourstart, dayend, hourend) = params
year, month, days, hours, mins, secs, yday, wday, isdst = \
time.gmtime(secs - delta*3600)
if (daystart, hourstart) <= (yday+1, hours) < (dayend, hourend):
tzname = dstname
hours = hours + 1
(tzname, delta, dstname, daystart, hourstart, dayend, hourend) = \
tzparams
year, month, days, hours, mins, secs, yday, wday, isdst = \
time.gmtime(secs - delta*3600)
return (daystart, hourstart) <= (yday+1, hours) < (dayend, hourend)
tzset()
def localtime(secs):
"""Get the local time in the current timezone."""
return tzlocaltime(secs, tzparams)
def test():
from time import asctime, gmtime
print 'now =', now, '=', asctime(tm), x[-1]
now = now - now % (24*3600)
if sys.argv[1:]: now = now + eval(sys.argv[1])
x = gmtime(now)
tm = x[:-1] + (0,)
print 'gmtime =', now, '=', asctime(tm), 'yday =', x[-2]
jan1 = now - x[-2]*24*3600
src/q/t/qtaste-HEAD/trunk/tools/jython/lib/Lib/tzparse.py qtaste(Download)
import time
(tzname, delta, dstname, daystart, hourstart, dayend, hourend) = params
year, month, days, hours, mins, secs, yday, wday, isdst = \
time.gmtime(secs - delta*3600)
if (daystart, hourstart) <= (yday+1, hours) < (dayend, hourend):
tzname = dstname
hours = hours + 1
(tzname, delta, dstname, daystart, hourstart, dayend, hourend) = \
tzparams
year, month, days, hours, mins, secs, yday, wday, isdst = \
time.gmtime(secs - delta*3600)
return (daystart, hourstart) <= (yday+1, hours) < (dayend, hourend)
tzset()
def localtime(secs):
"""Get the local time in the current timezone."""
return tzlocaltime(secs, tzparams)
def test():
from time import asctime, gmtime
print 'now =', now, '=', asctime(tm), x[-1]
now = now - now % (24*3600)
if sys.argv[1:]: now = now + eval(sys.argv[1])
x = gmtime(now)
tm = x[:-1] + (0,)
print 'gmtime =', now, '=', asctime(tm), 'yday =', x[-2]
jan1 = now - x[-2]*24*3600
src/f/r/fressia-HEAD/trunk/external/jython2.2.1/Lib/tzparse.py fressia(Download)
import time
(tzname, delta, dstname, daystart, hourstart, dayend, hourend) = params
year, month, days, hours, mins, secs, yday, wday, isdst = \
time.gmtime(secs - delta*3600)
if (daystart, hourstart) <= (yday+1, hours) < (dayend, hourend):
tzname = dstname
hours = hours + 1
(tzname, delta, dstname, daystart, hourstart, dayend, hourend) = \
tzparams
year, month, days, hours, mins, secs, yday, wday, isdst = \
time.gmtime(secs - delta*3600)
return (daystart, hourstart) <= (yday+1, hours) < (dayend, hourend)
tzset()
def localtime(secs):
"""Get the local time in the current timezone."""
return tzlocaltime(secs, tzparams)
def test():
from time import asctime, gmtime
print 'now =', now, '=', asctime(tm), x[-1]
now = now - now % (24*3600)
if sys.argv[1:]: now = now + eval(sys.argv[1])
x = gmtime(now)
tm = x[:-1] + (0,)
print 'gmtime =', now, '=', asctime(tm), 'yday =', x[-2]
jan1 = now - x[-2]*24*3600
src/q/t/qtaste-HEAD/tools/jython/lib/Lib/tzparse.py qtaste(Download)
import time
(tzname, delta, dstname, daystart, hourstart, dayend, hourend) = params
year, month, days, hours, mins, secs, yday, wday, isdst = \
time.gmtime(secs - delta*3600)
if (daystart, hourstart) <= (yday+1, hours) < (dayend, hourend):
tzname = dstname
hours = hours + 1
(tzname, delta, dstname, daystart, hourstart, dayend, hourend) = \
tzparams
year, month, days, hours, mins, secs, yday, wday, isdst = \
time.gmtime(secs - delta*3600)
return (daystart, hourstart) <= (yday+1, hours) < (dayend, hourend)
tzset()
def localtime(secs):
"""Get the local time in the current timezone."""
return tzlocaltime(secs, tzparams)
def test():
from time import asctime, gmtime
print 'now =', now, '=', asctime(tm), x[-1]
now = now - now % (24*3600)
if sys.argv[1:]: now = now + eval(sys.argv[1])
x = gmtime(now)
tm = x[:-1] + (0,)
print 'gmtime =', now, '=', asctime(tm), 'yday =', x[-2]
jan1 = now - x[-2]*24*3600
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 Next