Files
linux/drivers/rtc
Uwe Kleine-König 46351921cb rtc: test: Emit the seconds-since-1970 value instead of days-since-1970
This is easier to handle because you can just consult date(1) to convert
between a seconds-since-1970 value and a date string:

	$ date --utc -d @3661
	Thu Jan  1 01:01:01 AM UTC 1970

	$ date -d "Jan 1 12:00:00 AM UTC 1900" +%s
	-2208988800

The intended side effect is that this prepares the test for dates before
1970. The division of a negative value by 86400 doesn't result in the
desired days-since-1970 value as e.g. secs=-82739 should map to days=-1.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Signed-off-by: Alexandre Mergnat <amergnat@baylibre.com>
Link: https://lore.kernel.org/r/20250428-enable-rtc-v4-3-2b2f7e3f9349@baylibre.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2025-06-02 00:10:18 +02:00
..
2025-01-13 23:07:18 +01:00
2024-08-28 21:54:51 +01:00
2025-05-26 00:24:46 +02:00
2025-01-29 00:42:29 +01:00
2025-03-17 11:52:11 +01:00
2024-05-07 23:40:10 +02:00
2025-05-24 23:58:24 +02:00