Output Rāhukāla times in the local time zone
This commit is contained in:
parent
bf004f356c
commit
7d15bd1956
@ -81,9 +81,13 @@ def main() -> None:
|
|||||||
|
|
||||||
if next_rahukaalam is not None:
|
if next_rahukaalam is not None:
|
||||||
if rahukaalam:
|
if rahukaalam:
|
||||||
print(f'Rāhukāla (until {next_rahukaalam.strftime("%H:%M:%S")})')
|
print(
|
||||||
|
f'Rāhukāla (until {next_rahukaalam.astimezone(local_tz).strftime("%H:%M:%S")})'
|
||||||
|
)
|
||||||
else:
|
else:
|
||||||
print(f'Next Rāhukāla at {next_rahukaalam.strftime("%H:%M:%S")}')
|
print(
|
||||||
|
f'Next Rāhukāla at {next_rahukaalam.astimezone(local_tz).strftime("%H:%M:%S")}'
|
||||||
|
)
|
||||||
|
|
||||||
print(get_moon_phase_text(moon_phase))
|
print(get_moon_phase_text(moon_phase))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user