Last active
October 6, 2015 16:18
-
-
Save mikewebkist/3020083 to your computer and use it in GitHub Desktop.
How to see a leap second
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
# Run this a little before midnight UTC 6/30/2015 to see a leap second. | |
$x=(localtime)[0]; | |
while(1) { | |
printf "%2d %s (%s)\n", $x++, scalar(localtime), time; | |
$x %= 60; | |
sleep 1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The first column and the local seconds should match until midnight.