MCPcopy Index your code
hub / github.com/clips/pattern / time

Function time

pattern/db/__init__.py:182–189  ·  view source on GitHub ↗

Returns a value that can be added to a Date object.

(days=0, seconds=0, minutes=0, hours=0, **kwargs)

Source from the content-addressed store, hash-verified

180 return d
181
182def time(days=0, seconds=0, minutes=0, hours=0, **kwargs):
183 """ Returns a value that can be added to a Date object.
184 """
185 # Other parameters: microseconds, milliseconds, weeks.
186 # There is no months-parameter since months have a variable amount of days (28-31).
187 # To increase the month of a Date:
188 # Date(date.year, date.month+1, date.day, format=date.format)
189 return timedelta(days=days, seconds=seconds, minutes=minutes, hours=hours, **kwargs)
190
191#### STRING FUNCTIONS ##############################################################################
192# Latin-1 (ISO-8859-1) encoding is identical to Windows-1252 except for the code points 128-159:

Callers 3

03-date.pyFile · 0.90
durationFunction · 0.85
__init__.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…