1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-13 16:23:50 +03:00

python: Correct time conversion function name

Signed-off-by: Jo Sutton <josutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Jo Sutton
2024-03-07 17:14:24 +13:00
committed by Andrew Bartlett
parent cd44f8063b
commit 96ac8144b4

View File

@@ -56,7 +56,7 @@ def datetime_from_nt_time(nt_time: NtTime) -> datetime.datetime:
return NT_EPOCH + time_since_epoch
def nt_time_delta_from_datetime(dt: datetime.timedelta) -> NtTimeDelta:
def nt_time_delta_from_timedelta(dt: datetime.timedelta) -> NtTimeDelta:
return NtTimeDelta(round(dt.total_seconds() * NT_TICKS_PER_SEC))