Returns a new instance with the current time to a different time.
(
self, hour: int, minute: int = 0, second: int = 0, microsecond: int = 0
)
| 333 | return self.set(year=int(year), month=int(month), day=int(day)) |
| 334 | |
| 335 | def at( |
| 336 | self, hour: int, minute: int = 0, second: int = 0, microsecond: int = 0 |
| 337 | ) -> Self: |
| 338 | """ |
| 339 | Returns a new instance with the current time to a different time. |
| 340 | """ |
| 341 | return self.set( |
| 342 | hour=hour, minute=minute, second=second, microsecond=microsecond |
| 343 | ) |
| 344 | |
| 345 | def in_timezone(self, tz: str | Timezone | FixedTimezone) -> Self: |
| 346 | """ |