datetime.linspace
datetime: R = linspace (A, B)
datetime: R = linspace (A, B, N)
Create linearly spaced datetime values.
R = linspace (A, B) returns a row vector of 100
datetime values spaced equally between the scalar datetimes A and
B, both of which are included.
R = linspace (A, B, N) returns N
values instead of 100. A non-integer N is floored; if N is
one, B alone is returned, and if N is zero or negative the
result is empty.
The spacing is by absolute instant, so for zoned inputs it is daylight
saving aware: a span that loses an hour to a transition is divided into
equal instants, whose wall-clock readings are therefore not equally
spaced. The two endpoints may be in different time zones, in which case
the result is expressed in the zone of A, but they must either both
be zoned or both be unzoned. R carries the Format and
TimeZone of A.
A Not-A-Time endpoint makes every value that depends on it NaT,
leaving only the opposite endpoint; an infinite endpoint likewise carries
its infinity through the values that depend on it.
Source Code: datetime