Date & Time (datetime)

Constants (constants)

min_year

The smallest year number allowed in a datetime object. min_year is 1.

 

{ }
[{"paths":[],"data":{"datetime":"datetime","call":"datetime.constants.min_year","datetime.constants.min_year":"min_year","uuid":"071651f79538c5be3173b651cc9bcb7e","args":{},"height":32,"width":120,"step":"set min_year","data_to_var":"min_year","y":0,"x":0,"type":"library","maxpaths":1}}]

Example Response

{"min_year":1}

max_year

The largest year number allowed in a datetime object. max_year is 9999.

 

{ }
[{"paths":[],"data":{"datetime":"datetime","call":"datetime.constants.max_year","datetime.constants.max_year":"max_year","uuid":"071651f79538c5be3173b651cc9bcb7e","args":{},"height":32,"width":120,"step":"set max_year","data_to_var":"max_year","y":0,"x":0,"type":"library","maxpaths":1}}]

Example Response

{"max_year":9999}

min_month

The smallest month number allowed in a datetime object. min_month is 1.

 

{ }
[{"paths":[],"data":{"datetime":"datetime","call":"datetime.constants.min_month","datetime.constants.min_month":"min_month","uuid":"071651f79538c5be3173b651cc9bcb7e","args":{},"height":32,"width":120,"step":"set min_month","data_to_var":"min_month","y":0,"x":0,"type":"library","maxpaths":1}}]

Example Response

{"min_month":1}

max_month

The largest month number allowed in a datetime object. max_month is 12.

 

{ }
[{"paths":[],"data":{"datetime":"datetime","call":"datetime.constants.max_month","datetime.constants.max_month":"max_month","uuid":"071651f79538c5be3173b651cc9bcb7e","args":{},"height":32,"width":120,"step":"set max_month","data_to_var":"max_month","y":0,"x":0,"type":"library","maxpaths":1}}]

Example Response

{"max_month":12}

min_day

The smallest day number allowed in a datetime object. min_day is 1.

 

{ }
[{"paths":[],"data":{"datetime":"datetime","call":"datetime.constants.min_day","datetime.constants.min_day":"min_day","uuid":"071651f79538c5be3173b651cc9bcb7e","args":{},"height":32,"width":120,"step":"set min_day","data_to_var":"min_day","y":0,"x":0,"type":"library","maxpaths":1}}]

Example Response

{"min_day":1}

max_day

The largest day number allowed in a datetime object. max_day is 31.

 

{ }
[{"paths":[],"data":{"datetime":"datetime","call":"datetime.constants.max_day","datetime.constants.max_year":"max_day","uuid":"071651f79538c5be3173b651cc9bcb7e","args":{},"height":32,"width":120,"step":"set max_day","data_to_var":"max_day","y":0,"x":0,"type":"library","maxpaths":1}}]

Example Response

{"max_day":31}

min_hour

The smallest hour number allowed in a datetime object. min_hour is 0.

 

{ }
[{"paths":[],"data":{"datetime":"datetime","call":"datetime.constants.min_hour","datetime.constants.min_hour":"min_hour","uuid":"071651f79538c5be3173b651cc9bcb7e","args":{},"height":32,"width":120,"step":"set min_hour","data_to_var":"min_hour","y":0,"x":0,"type":"library","maxpaths":1}}]

Example Response

{"min_hour":0}

max_hour

The largest hour number allowed in a datetime object. max_hour is 23.

 

{ }
[{"paths":[],"data":{"datetime":"datetime","call":"datetime.constants.max_hour","datetime.constants.max_hour":"max_hour","uuid":"071651f79538c5be3173b651cc9bcb7e","args":{},"height":32,"width":120,"step":"set max_hour","data_to_var":"max_hour","y":0,"x":0,"type":"library","maxpaths":1}}]

Example Response

{"max_hour":23}

min_minute

The smallest minute number allowed in a datetime object. min_minute is 0.

 

{ }
[{"paths":[],"data":{"datetime":"datetime","call":"datetime.constants.min_minute","datetime.constants.min_minute":"min_minute","uuid":"071651f79538c5be3173b651cc9bcb7e","args":{},"height":32,"width":120,"step":"set min_minute","data_to_var":"min_minute","y":0,"x":0,"type":"library","maxpaths":1}}]

Example Response

{"min_minute":0}

max_minute

The largest minute number allowed in a datetime object. max_minute is 59.

 

{ }
[{"paths":[],"data":{"datetime":"datetime","call":"datetime.constants.max_minute","datetime.constants.max_minute":"max_minute","uuid":"071651f79538c5be3173b651cc9bcb7e","args":{},"height":32,"width":120,"step":"set max_minute","data_to_var":"max_minute","y":0,"x":0,"type":"library","maxpaths":1}}]

Example Response

{"max_minute":59}

min_second

The smallest second number allowed in a datetime object. min_second is 0.

 

{ }
[{"paths":[],"data":{"datetime":"datetime","call":"datetime.constants.min_second","datetime.constants.min_second":"min_second","uuid":"071651f79538c5be3173b651cc9bcb7e","args":{},"height":32,"width":120,"step":"set min_second","data_to_var":"min_second","y":0,"x":0,"type":"library","maxpaths":1}}]

Example Response

{"min_second":0}

max_second

The largest second number allowed in a datetime object. max_second is 59.

 

{ }
[{"paths":[],"data":{"datetime":"datetime","call":"datetime.constants.max_second","datetime.constants.max_second":"max_second","uuid":"071651f79538c5be3173b651cc9bcb7e","args":{},"height":32,"width":120,"step":"set max_second","data_to_var":"max_second","y":0,"x":0,"type":"library","maxpaths":1}}]

Example Response

{"max_second":59}

min_microsecond

The smallest microsecond number allowed in a datetime object. min_microsecond is 0.

 

{ }
[{"paths":[],"data":{"datetime":"datetime","call":"datetime.constants.min_microsecond","datetime.constants.min_microsecond":"min_microsecond","uuid":"071651f79538c5be3173b651cc9bcb7e","args":{},"height":32,"width":120,"step":"set min_microsecond","data_to_var":"min_microsecond","y":0,"x":0,"type":"library","maxpaths":1}}]

Example Response

{"min_microsecond":0}

max_microsecond

The largest microsecond number allowed in a datetime object. max_microsecond is 999999.

 

{ }
[{"paths":[],"data":{"datetime":"datetime","call":"datetime.constants.max_microsecond","datetime.constants.max_microsecond":"max_microsecond","uuid":"071651f79538c5be3173b651cc9bcb7e","args":{},"height":32,"width":120,"step":"set max_microsecond","data_to_var":"max_microsecond","y":0,"x":0,"type":"library","maxpaths":1}}]

Example Response

{"max_microsecond":999999}

min

The smallest value allowed in a datetime object. All values are based using 1/1/1970 00:00:00.000000 (also known as the epoch) as 0. min is microseconds before the epoch to reach 01/01/0001 00:00:00.000000 or -62135596800000000.

 

{ }
[{"paths":[],"data":{"datetime":"datetime","call":"datetime.constants.min","datetime.constants.min":"min","uuid":"071651f79538c5be3173b651cc9bcb7e","args":{},"height":32,"width":120,"step":"set min","data_to_var":"min","y":0,"x":0,"type":"library","maxpaths":1}}]

Example Response

{"min":-62135596800000000}

max

The largest value allowed in a datetime object. All values are based using 1/1/1970 00:00:00.000000 (also known as the epoch) as 0. max is microseconds after the epoch to reach 12/31/9999 23:59:59.999999 or 253402300799999999.

 

{ }
[{"paths":[],"data":{"datetime":"datetime","call":"datetime.constants.max","datetime.constants.max":"max","uuid":"071651f79538c5be3173b651cc9bcb7e","args":{},"height":32,"width":120,"step":"set max","data_to_var":"max","y":0,"x":0,"type":"library","maxpaths":1}}]

Example Response

{"max":253402300799999999}