adjust_timestamp
Adjust timestamp based on provided utcoffset.
def adjust_timestamp(
ts: float,
offset: int,
here: Callable[..., float] = utcoffset
) - > float
Adjust timestamp based on provided utcoffset.
Parameters
| Name | Type | Description |
|---|---|---|
| ts | float | The original Unix timestamp to be adjusted. |
| offset | int | The target UTC offset in hours to apply to the timestamp. |
| here | Callable[..., float] = utcoffset | A callable that returns the current local UTC offset in hours; defaults to the utcoffset function. |
Returns
| Type | Description |
|---|---|
float | The adjusted Unix timestamp in seconds, shifted by the difference between the provided offset and the local UTC offset. |