Date & Time

PyDatetime

Python stdlib module — datetime. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.

Other Methods

.date()Neutral
#
Signature
date(...)

date(year, month, day) --> date object

.datetime()Neutral
#
Signature
datetime(...)

datetime(year, month, day[, hour[, minute[, second[, microsecond[,tzinfo]]]]])

.time()Neutral
#
Signature
time(...)

time([hour[, minute[, second[, microsecond[, tzinfo]]]]]) --> a time object

.timedelta()Neutral
#
Signature
timedelta(...)

Difference between two datetime values.

.timezone()Neutral
#
Signature
timezone(...)

Fixed offset from UTC implementation of tzinfo.

.tzinfo()Neutral
#
Signature
tzinfo(...)

Abstract base class for time zone info objects.

Fully-Qualified Names

FQNField
datetimefqns[0]

Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.

Import

rule.py
import datetime