Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
This challenge is intended to be solved by using, manipulating, accepting as input, outputting, or calculating calendar dates or clock times.
8
votes
2
answers
309
views
Output ISO8601 date
timestamp output any of two valid ISO 8601 time formats:
YYYY-MM-DDTHH:mm:SS or, alternatively,
YYYY-MM-DD HH:mm:SS
You may ignore any leap seconds, if you wish, as well as the timezone part of the date … Rules
You must not use any built-in date functions,
You may not use any string formatting functions (like printf), however sorting, reversing, changing case etc. is allowed,
Your program may not contain …
7
votes
Stop, stand there where you are!
Commodore 64 BASIC, 19 16 bytes
1000 FORI=1TO930*N:NEXT:RETURN
With a call N=<number-of-secods>:GOSUB1000.
However, I cannot provide enough accuracy. Because C64 had about 1 MHz CPU speed, I remem …
2
votes
Leap for Leap Seconds!
PHP, 198 bytes
foreach([.5,1,2,3,4,5,6,7,8,9.5,10.5,11.5,13.5,16,18,19,20.5,21.5,22.5,24,25.5,27,34,37,40.5,43.5] as$d){$h=(int)$d-ceil($d);echo date("Y-m-d 23:59:60",mktime(0,0,0,-6*$h,31+$h,(int)$d+ … \n";}
Unfortunately, I don't know if I can insert \n in the date function. If so, this is 3 bytes less because of ."". …