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

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)
A duration in time, such as the difference between two DateTimes.  This is often
used in Grouping.stratify_by_date and Grouping.summarize_by_date.  Negative numbers
specify durations that go backwards in time.

@param   days:         The number of days in this duration
@type    days:         int, long, or float
@param   seconds:      The number of seconds in this duration
@type    seconds:      int, long, or float
@param   microseconds: The number of microseconds in this duration
@type    microseconds: int, long, or float(more...)

        def TimeDelta(days=0, seconds=0, microseconds=0, milliseconds=0, minutes=0, hours=0, weeks=0):
  '''A duration in time, such as the difference between two DateTimes.  This is often
     used in Grouping.stratify_by_date and Grouping.summarize_by_date.  Negative numbers
     specify durations that go backwards in time.
     
     @param   days:         The number of days in this duration
     @type    days:         int, long, or float
     @param   seconds:      The number of seconds in this duration
     @type    seconds:      int, long, or float
     @param   microseconds: The number of microseconds in this duration
     @type    microseconds: int, long, or float
     @param   milliseconds: The number of milliseconds in this duration
     @type    milliseconds: int, long, or float
     @param   minutes:      The number of minutes in this duration
     @type    minutes:      int, long, or float
     @param   hours:        The number of hours in this duration
     @type    hours:        int, long, or float
     @param   weeks:        The number of weeks in this duration
     @type    weeks:        int, long, or float
     @return: A datetime.timedelta object
     @rtype:  datetime.timedelta
  '''
  return datetime.timedelta(days, seconds, microseconds, milliseconds, minutes, hours, weeks)
        


src/p/i/picalo-4.94/picalo/Grouping.py   picalo(Download)
from picalo import run_tablearray, ensure_valid_variables, make_unique_colnames, ensure_unique_colname
from Expression import PicaloExpression
from Calendar import DateDelta, Date, DateTime
 
 
  # this really isn't any different than stratify by step, just the data types
  if not isinstance(duration, datetime.timedelta):
    duration = DateDelta(duration)
  return stratify_by_step(table, col, duration)