#1011164 rtcwake: time without date defaulting to "today" is useless

Package:
util-linux
Source:
util-linux
Description:
miscellaneous system utilities
Submitter:
Simon Richter
Date:
2026-01-10 11:40:07 UTC
Severity:
wishlist
Tags:
#1011164#5
Date:
2022-05-17 18:49:02 UTC
From:
To:
Hi,

the rtcwake command accepts a time without a date as an argument to --date,
interprets it as meaning "today", then complains that the RTC doesn't go
backwards. The string "tomorrow" can only stand alone and means midnight.

This makes it difficult to specify "tomorrow 9:00" without date calculation
code, like rtcwake -t `date +%s -d "tomorrow 9:00"`.

Since it is clear that the desired time cannot be in the past, it would be
nice to interpret a time without a date as either today or tomorrow,
similar to how at(1) handles it.

   Simon

#1011164#10
Date:
2026-01-10 10:08:19 UTC
From:
To:
Es gibt eine Familienspende in Höhe von 1.850.000,00 USD von Cheng Charlie
Saephan. Bitte antworten Sie für weitere Informationen. Denken Sie daran,
Ihrer Familie und den Bedürftigen in Ihrer Umgebung Gutes zu tun.

Dies ist bereits der zweite Versuch, Sie zu erreichen. Bitte antworten Sie
für weitere Details.