• # Leap second

    Posté par . En réponse au message kernel linux et définition d'une minute. Évalué à 10.

    L'histoire de modifier une (parfois deux) secondes en fin d'année, c'est une seconde intercalaire. J'y connais rien en noyal, mais grep me répond :

    include/linux/time.h: * 0 to 59, but can be up to 60 to allow for leap seconds

    /usr/src/linux/$ grep -r -i "leap second" *
    arch/s390/include/asm/etr.h:					/* (buo - 128) = leap seconds */
    arch/powerpc/kernel/time.c: * non ambiguous timestamps even around leap seconds. This needs
    Documentation/DocBook/media/v4l/io.xml:warped to insert leap seconds, or even turned back or forth by the
    fs/udf/udftime.c: *		 John Brockmeyer (without leap second corrections)
    fs/udf/udftime.c: * We don't take into account leap seconds. This may be correct or incorrect.
    fs/udf/udftime.c: * For more NIST information (especially dealing with leap seconds), see:
    include/linux/timex.h:#define TIME_OK		0	/* clock synchronized, no leap second */
    include/linux/timex.h:#define TIME_INS	1	/* insert leap second */
    include/linux/timex.h:#define TIME_DEL	2	/* delete leap second */
    include/linux/timex.h:#define TIME_OOP	3	/* leap second in progress */
    include/linux/timex.h:#define TIME_WAIT	4	/* leap second has occurred */
    include/linux/time.h:	 * 0 to 59, but can be up to 60 to allow for leap seconds
    kernel/time/ntp.c: * Leap second processing. If in leap-insert state at the end of the
    kernel/time/ntp.c:			"Clock: inserting leap second 23:59:60 UTC\n");
    kernel/time/ntp.c:			"Clock: deleting leap second 23:59:59 UTC\n");
    kernel/time/ntp.c: * Start the leap seconds timer: