Uses of Class
types.collections.time.datespan

Packages that use datespan
Package
Description
 
  • Uses of datespan in types.collections.time

    Methods in types.collections.time that return datespan
    Modifier and Type
    Method
    Description
    datespanset.end_element()
    Returns the last date in ``self``.
    datespan.scale(Integer duration)
    Returns a new :class:`DateSpan` that starts as ``self`` but has duration ``duration``.
    datespanset.scale(int duration)
    Returns a new :class:`DateSpan` that starts as ``self`` but has duration ``duration``.
    datespan.shift(Integer shift)
    Returns a new :class:`DateSpan` that is the result of shifting ``self`` by ``delta``.
    datespan.shift_scale(Integer shift, Integer duration)
    Returns a new :class:`DateSpan` that starts at ``self`` shifted by ``shift`` and has duration ``duration`` Examples: >>> DateSpan('[2000-01-01, 2000-01-10]').shift_scale(shift=timedelta(days=2), duration=timedelta(days=4)) >>> 'DateSpan([2000-01-03, 2000-01-07])' Args: shift: :class:`datetime.timedelta` instance to shift duration: :class:`datetime.timedelta` instance representing the duration of the new dateSpan Returns: A new :class:`DateSpan` instance MEOS Functions: datespan_shift_scale
    datespanset.span_n(int n)
     
    datespanset.start_span()
    Returns the first date in ``self``.
    datespanset.to_span()
    Returns a :class:`DateSpanSet` set containing ``self``.
    Methods in types.collections.time that return types with arguments of type datespan
    Modifier and Type
    Method
    Description
    datespanset.elements()