Creates a new DateTime instance from a specific date and time.
(
year: int,
month: int,
day: int,
hour: int = 0,
minute: int = 0,
second: int = 0,
microsecond: int = 0,
tz: str | float | Timezone | FixedTimezone | _datetime.tzinfo | None = UTC,
fold: int = 1,
raise_on_unknown_times: bool = False,
)
| 124 | |
| 125 | # Public API |
| 126 | def datetime( |
| 127 | year: int, |
| 128 | month: int, |
| 129 | day: int, |
| 130 | hour: int = 0, |
| 131 | minute: int = 0, |
| 132 | second: int = 0, |
| 133 | microsecond: int = 0, |
| 134 | tz: str | float | Timezone | FixedTimezone | _datetime.tzinfo | None = UTC, |
| 135 | fold: int = 1, |
| 136 | raise_on_unknown_times: bool = False, |
| 137 | ) -> DateTime: |
| 138 | """ |
| 139 | Creates a new DateTime instance from a specific date and time. |
| 140 | """ |
| 141 | return DateTime.create( |
| 142 | year, |
| 143 | month, |
| 144 | day, |
| 145 | hour=hour, |
| 146 | minute=minute, |
| 147 | second=second, |
| 148 | microsecond=microsecond, |
| 149 | tz=tz, |
| 150 | fold=fold, |
| 151 | raise_on_unknown_times=raise_on_unknown_times, |
| 152 | ) |
| 153 | |
| 154 | |
| 155 | def local( |
searching dependent graphs…