« first day (623 days earlier)      last day (4319 days later) » 
00:00 - 15:0015:00 - 00:00

3:09 PM
Hello, How to access/get the value of a input type=text where its name is notes[] (array)?
I am using notes = document.mainform.this.value; but not working..
 
Why would it work? mainform.this is meaningless.
 
or even document.mainform."notes[]".value = ""; is also not working.
 
Subscript notation, js 101: mainform[ 'notes[]' ]
or, more generally, obj[thisWillBeStringified]
 
Ok, is this syntax correct to assign the value of box to var notes? var notes = document.mainform.mainform[ 'notes[]' ].value;
 
no, what's document.mainform.mainform?
 
3:16 PM
Sorry, mainform is twice. My Bad..
 
And, if there's more than one input with a name of notes[], it will give you a NodeList, so you'll need to select the one you want
 
Ok, in var notes = document.mainform.[ 'notes[]'].value; alert(notes); is alerting "undefined"
yeah, notes[] input nox can be more than one..
 
What's the shortcut to format your message as monospaced code again? I just closed my browser.
 
ctrk+k
 
3:22 PM
asdf
Ah, cheers!
 
@Zirak Check out this jsfiddle.net/fL6y3 What I need is that if, onclick, the value of textbox is "Notes..", then the value should be changed to empty.
 
blah
 
@Zirak why all the Java hate? Sure, it's incredibly verbose and unnecessarily OO, but there are things that are far worse.
 
How do you start a new line?
 
@SomeKittens Seriously? Your argument is "it could be worse"? Try again.
 
3:24 PM
Christ, I've been on the net since 94 and I can't figure this shit out ...
 
Shift+Return :P
 
@SomeKittens What's worse?
 
@adscriven PHP, by far
 
@SomeKittens give me php any day
 
I'd pick php before java
 
3:25 PM
And php is shite.
 
i'd pick PHP before J2EE but not before java itself
php is utter crap, but the J2EE bloat is even worse
 
Hell, I'd pick Ruby before Java...
 
I'd pick J2EE and I don't even know what that is
 
Hmm, close call ...
(and I love Smalltalk)
 
PHP here.. :)
 
3:27 PM
Ruby makes me want to barf, but at least it doesn't make me want to kill myself
 
...so why the hate?
 
You know, I think I might actually pick Java over Ruby. At least it'll prevent me from working with bastards who thing that the solution to every programming problem is metaprogramming.
 
@SomeKittens public static Comparator<Mitglied> NameComparator = new Comparator<Mitglied>()
 
I'd still pick Java's enterprise-yness over PHP's retarded box of tools
 
@SomeKittens Me too, but Java is really ugly
 
3:29 PM
Because Java is the most dry, repetitive, over-thought, over-chewed, unnecessary, boring, lacking in anything of importance and patronizing piece of shit in existence. I've seen 60 year old men with self-important suits and gold watches who deserve less hate than Java.
 
@copy Like I said, it's incredibly verbose. But I'd rather have a verbose language than PHP
 
Java == pain. php == feeling ill.
 
Writing in Java makes me want to stop writing. Fuck, after some time of writing Java, it makes me want to stop living, just for the hope of finding something resembling actual thought process.
4
 
php has dynamicism, decent reflection, and the mother of all libraries.
It still sucks though.
 
@adscriven its slow , layered junkyard
 
3:31 PM
PHP is much worse than Java. I would only write Java under threat of death though
 
Well obviously I use Fortran for predicting the weather.
 
And now for a nice analogy: Java is an old Catholic nun who's afraid of ghosts and demons.
 
I havent coded java ever
 
Could somebody check this JavaScript? jsfiddle.net/Sj8ta/1 What I need is that onfocus, if the value is "Notes..", it(value) should become empty..
 
but the sound of it scares me :-/
@Davinder you dont need to use javascript for that
unless you are using legacy browser
 
3:33 PM
@Abhishek Have you used C#?
 
@Abhishek Ok, could you point me in the right direction? Any pointers?
 
@Abhishek It's not nearly as bad as Zirak makes it out to be. Just imagine you have to write 3x as much code to get anything done. It's a wonderful language for enterprise environments because everyone gets to look busy without doing any work
 
So, if you happen to like java, please don't come forth with arguments like "it could be worse" or "prove it". Dignify us with a real argument
 
Could somebody check this JavaScript? jsfiddle.net/Sj8ta/1 What I need is that onfocus, if the value is "Notes..", it(value) should become empty..
 
3:34 PM
@SomeKittens But coding for enterprises sucks, no ?
 
@adscriven yeap
@Davinder there u go
 
@Zirak I don't like Java. But I still think it's better than PHP
 
@copy I'd hit the developer for not using english names
 
@Abhishek It's the same.
 
@copy Absolutely. I'd rather use Python over any language mentioned so far
 
3:35 PM
@SomeKittens Why on earth is it better than php? (Not that php is good, just that Java is that bad.)
 
That's something else, then...language preference is weird anyway.
 
@Abhishek Oh wow.. Placeholders.. amaging.. Learnt a totally new thing...
 
@ThiefMaster I might get thrown out if I hit my prof, but you can give it a try if you visit Germany
 
Now, I need a drink. yuck, java...
 
No need to visit it ;)
 
3:36 PM
@adscriven This may seem like the nittiest nit ever picked, but at least Java uses camel case for everything
 
And heh, code from professors.. nothing better to expect.
 
@ThiefMaster Oh, right. Please make a video of it then :-)
 
At university I had one who was talking about "Übersetzer" and "Binder" instead of "Compiler" and "Linker"...
 
@SomeKittens Not at all. php's inconsistent naming of everything is a nightmare.
 
@ThiefMaster Druckknopf, Maus mit Rollrad
 
3:37 PM
Java is consistent junk.
 
And a friend who's studying in CH had the same thing but over there the professor mentioned that the university required him to do this crap...
 
@Davinder its k :-)
 
@adscriven Both have extensive libraries, but I prefer Java's documentation. Finally, somewhere verbosity is an advantage
 
My uni has replaced Smalltalk with Java.
 
My university teaches Java Java Java
 
3:37 PM
I am sad.
 
and we get industrail training of Java
 
@adscriven A lot of colleges do, because it scares noobs less
 
with some more Java for assignments
and get jobs because of Java
 
@SomeKittens I agree with you there too.
 
:-| and u say java is bad ?
 
3:38 PM
...but then us CS students have to take calc 1&2 freshman year, so that scares us off
 
But Java itself still sucks.
 
@SomeKittens exchange uni with me
over here we study more theory then code :-x
as in the 4 year syllabus of Electronics and Communication and Computer Science is 80% same
 
I took a voluntary maths course for my degree even though I totally suck at maths.
 
As far as I can tell, the only concrete reasons people dislike it is because
- It's owned by Sun
- It's verbose (biggest strike against it, in my opinion)
- It's run by nuns
@Abhishek Yeah we do a LOT of theory (pretty much as soon as we finish syntax), but all the theory is done in Java
 
s/Sun/Oracle
 
3:40 PM
Which kinda defeats the purpose, honestly
 
@SomeKittens It's rigid. Extremely so.
 
@SomeKittens does your theory contains
 
I'd rather write C.
 
fibre optics , physics of them , even sme part of chemistry of em ?
 
@Abhishek Yeah, my theory contains
 
3:41 PM
then we are quite same
though my uni is lame
 
Actually, I used to have fun writing in C. Even though it's an order of magnitude lower level than JavaScript.
 
and teachers are shame
 
@Abhishek ...why would you need that in a Computer Science course? Our theory is stuff like algorithms, data structures, and AI
 
Its in networks
 
I don't have fun writing in Java. What's the difference?
 
3:42 PM
IInd year :-| , even i have to find that out bro
 
@Abhishek, we skipped networks (I'm Net+)
 
Why can't you reply to your own messages? Strike 1 stackoverflow.
 
@SomeKittens i personally feel my Uni is still in 1980's of computer science
 
 
If the 1980s means Smalltalk, then you have a great uni.
 
3:44 PM
for 1980's i mean the very very basics
3rd year students are asked questions to print

*****
***
*
via C++ or Java on console
 
What, Lisp, ML, Smalltalk?
 
.. hell a noob can do that
 
Modula? Prolog?
 
@Zirak ugh. I spent most of semester trying to wrap my head around recursion. Finally got it. Totally worth it
 
We might be in the 21st century, but the mainstream is a long way behind what was possible in Lisp and Smalltalk a very long time ago.
recursion === again (and stop worrying)
 
3:47 PM
I'm beginning to really value Prolog and Erlang. True, Prolog made my brain explode, but I might be getting this whole Erlang thing.
Pattern Matching is amazing
 
Never tried either. Is Erlang like ML? It looks similar.
 
Never tried ML. Erlang is a non-pure functional language, which apparently has incredible concurrency (not threads) and is very stable. It also has pattern matching, since it's based on Prolog, so it'll make your head explode a bit.
 
Oh I didn't know it was based on Prolog. Interesting.
Otherwise it sounds a lot like ML, OCaml and F#.
 
Erlang is a general-purpose concurrent, garbage-collected programming language and runtime system. The sequential subset of Erlang is a functional language, with strict evaluation, single assignment, and dynamic typing. It was designed by Ericsson to support distributed, fault-tolerant, soft-real-time, non-stop applications. It supports hot swapping, so that code can be changed without stopping a system. While threads are considered to be a complicated and error-prone topic in most languages, Erlang provides language-level features for creating and managing processes with the aim of simpl...
 
I'm being made to learn .NET atm, which, as far as I'm concerned, means learning F# in a hurry.
 
3:51 PM
Erlang was apparently influenced by ML
 
Ah, right. I think most strongly typed functional languages are.
 
I am currently trying Haskell. Functional (non-imperative) programming is really fun
 
Maybe I should try Haskell too. I tried OCaml a while back but I couldn't get my head around it. Maybe that's because it's functional, imperative, and OO all in one.
I didn't really know what to do.
V. impressive language though, and the basis of F#.NET.
 
@adscriven Well, learnyouahaskell.com
 
I heard good things about Clojure, and Io looks very interesting
 
3:54 PM
Why does MS never properly promote the cool shit they do?
@copy Thanks!
 
It's not really cool, because it only works on Windows
 
Clojure is Lisp though, not of the ML family.
Io does indeed look awesome.
Looks like Scheme with prototypical OO built in. Kinda like JS could've been.
 
You can try this video when you have some basic understanding:
http://www.youtube.com/watch?v=mtvoOIsN-GU
 
@copy Doesn't it work on Mono?
@copy Thanks.
 
@adscriven I don't know, but I would like a free language. F# might be cool, but that's only because it's a copy of another language
 
3:58 PM
@copy Yes, with syntactical improvements: it allows simpler syntax with significant whitespace like Haskell.
But you're right, it's basically a port of OCaml to .NET. Impressive though.
 
You have to ponder: Do you want MS, or a less modern language ?
 
It's a first class .NET language though, with full Visual Studio support. Since MS have dropped development of JScript.NET, it's the only sane choice for developing on Windows for me.
 
Neither is a bad choice, but I'll stick to Linux
 
I don't have a choice, professionally.
And I'll have a hard time getting my employer to accept code in F#, but I'm going to try.
@copy So what's your preferred language on Linux then?
 
@adscriven From the scripting languages (not C, C++, Assembler, ...): Python at the moment, Haskell (I am not good enough though), JS
 
4:06 PM
Funny thing is, I never found developing in C to be painful. You just specialise rather than generalise, which is what XP advocates anyway.
 
@copy Reverse the order and remove Haskell for me
@adscriven +1
 
It can be painful, rather, but often isn't.
Annoying thing: lots of young programmers think that C === C++.
 
@adscriven Me neither. But I haven't found many applications for C yet
And I haven't found a language that compiles and is more high level than C
 
I've written basic string manipulation stuff in C that would have taken 10x less LOC in Perl. However it would have taken me > 10x as long to learn the appropriate Perl.
 
Someone wants an headache? jsfiddle.net/AAhdV
 
4:09 PM
Also, it's at least 10 times faster, right ?
 
@copy ever worked with audio , video processing
 
@Abhishek Nope
 
Dunno, basic string manipulation utilities don't require speed.
 
@copy you will need C / C++ there
Java is good but not awesome in that case
 
My first languages were Forth and C. I never used Forth in anger, but I still think it's the work of genius.
 
4:10 PM
and JavaScript , Python
just are toooooooooooooooooo slow to be used
 
@Abhishek Not sure about that. Any compiled language might work
 
What's JS too slow for?
 
@Abhishek How about D?
@Mageek Old
 
Ah. D is very nice.
It deserves greater adoption, but will never get any. Go has a better chance.
Forth can be extremely fast, but is too weird for most developers.
 
Nice looks...interesting
 
4:15 PM
Is it possible to pull the thumb image of a Soundcloud track?
 
@Zirak It has the keyword 'class'. I'm immediately discouraged.
 
@Zirak Never used it but most of the already done work regarding audio video is found on C++ / C
 
I'm discouraged by a strict typing system
 
for example LibLame , libmpg123, libMad , libffmpeg , libtheora , libid3 [ and the list goes on ]
 
I'm discouraged by the comic sans in the title
 
4:17 PM
@Zirak Does Erlang not have a strict typing system?
 
@Abhishek Because sadly, D isn't very known. But you requested speed, and I granted an example
 
tear
 
@SimonSarris Quite so.
 
@adscriven oh, that bollocks terms about what a dynamic or strict or static or whatever...never got those.
In my eyes, if you have to juggle types, it's strict
 
@Zirak Well then we have to differentiate between sane strict (ML & co.) and insane strict (Java & co.).
C is somewhere in the middle.
C++ is psychotic.
& JS is yeah, whateva.
 
4:25 PM
Another reason to not like Java. PHP isn't strictly typed, but it's wrongly typed (type errors can lead to crazy bugs)
 
@SomeKittens I've never really had those problems. But I use unit tests and avoid classes.
 
@adscriven Do you have the luxury of writing all your own code?
 
Plus I don't use php much for heavy lifting. It's basically a database API for me.
@SomeKittens Sadly yes.
I've had to use it for some custom graphics stuff, but otherwise it's basically been just an API for me.
 
I work with half-finished code that was outsourced. Proper debugging tools in the language mean a LOT to me
 
A decent stack trace is usually enough.
Sometimes you need a profiler; php has that.
 
4:30 PM
heh
I wish you were right....
 
php is okay. Not great, but can get the job done. And it has a MASSIVE library. That's why it has so much adoption despite being completely shit as a language. Java's worse though.
Even though Java is technically better as a language.
Practically it's worse.
 
I thought it was because they fill two completely different roles
 
Nah, it's all enterprise bollocks.
You're looking at it from the wrong angle.
The correct angle has the value: $
Language merit is not a technical evalutation. It has a social aspect.
 
and here all this time I thought php had a lot of adoption because there was a lot of utility in an html templating language
 
That's why aspect orient programming is the way forward. <trollface />
@SimonSarris It simply has utility.
It has a function for this. It has a function for that. It has a function for calculating the displacement above sea level of a hovercraft on the Dead Sea during the Summer Solstice.
@ 63.7 mph.
Even if it turns out to be a constant.
That's why php is so widespread. And it's a valuable lesson.
php will make you scrambled eggs on toast for breakfast in the morning.
The recipe will make you barf, but the meal will be nice.
And as long as consumers report good experiences, developers will continue to use the platforms that generate those experiences, substandard though they may be.
Especially the applicative order Y-combinator.
Tantalisingly it's only a few lines of code.
But it bends the mind in new ways.
 
5:15 PM
> Life isn't fair. It's just fairer than death, that's all. -William Goldam, The Princess Bride
 
@Zirak Badger Girl wants to meet me. This is getting super weird
 
@copy is that the little man from I wanna be the guy?
 
5:33 PM
@Mageek ah the magic of multibyte :)
 
5:56 PM
Is anyone here?
 
sorta
 
I want to check if the value of a control is null or empty in jQuery , this isn't working
var UserID = $('#<%= hidUserID.ClientID %>').val();
if (UserID == '') {
$('#<%= loginform.ClientID %>').show();
}
 
if(UserID === ""){
note the use of two quotes and triple equals
 
ahhh, double quotes
i'll try that
 
whoops, misread
two single quotes should work equally well
 
6:00 PM
i'll keep trying then
 
@copy huh? Where did she say that?
 
@ScottSelby You seem to be showing something you've just declared empty
 
well , now I got it to work, but for some reason only once
If that function is called , the div with loginform is displayed, then if function is called again it won't display, I have to keep messing with it
 
@Zirak I wrote her a SMS. Then she called
 
hahaha, then it's kinda on your head
 
6:05 PM
It's hard using jQuery and javascript in asp.net custom controls , because a lot of c# guys don't know js too well, and js guys don't know asp.net too well
 
6:16 PM
@zirak Hi, sorry i missed what you said yesterday
About getting the DOM the script is inside or semething
 
@ScottSelby: WebForms are an ugly mess anyway
 
I know, after this project I'm definetly moving towards MVC
 
6:55 PM
lol
 
 
2 hours later…
8:25 PM
hey guys
is it faster to return a new instance from a constructor function, or to return an object created on the fly?
I'm hesitating on the latter only because I use the same type of object twice in my script (a short file), so it'd reduce the length a little bit
don't know about performance though
 
Wow. Twice. That could, like, affect the performance by a millisecond. Scary.
You should totally over-optimize instead of going for readability.
 
hey, just wondering
and
I'll be instantiating thousands of times
(this'll be iterated over a rather large array)
 
It depends on what you're doing with them. If you're really concerned then do a benchmark. I'd go for readability until significantly proven otherwise, though.
 
creating objects = cheap.
premature optimization is the root of all evils
if you have performance problems, profile and find the bottleneck.
but as Zirak said, always prefer maintainability/readability over performance
except when it's becoming a problem.
but until it's not, just don't bother
you're only wasting time
</rant>
 
8:41 PM
for some reason when I instantiate from constructor and log the object later it returns null
creating one on the fly solves "the problem"
not really sure what's up with that
 
Error: Unmatched end tag </rant>
Then you have a bug; kill it until it's dead
Or call it a "feature"
"oh yes, I made the most amazing thing, it produces a row of null!"
 
I never actually advertised that as a feature
or my app at all
 
heh
> It's not a bug, it's a feature.
 
You know, there's a concept called sarcasm. It's quite new. You should give it a go
 
Microsoft.
was it bill gates?
or already steve ballmer?
 
8:46 PM
@Zirak for sure, but I usually find it less harsh when it's not in the form of a mild berating; I could easily be misinterpreting, but that's what it seems like
 
You must be new here
 
If you're not getting a mild berating, you're doing something wrong
 
> “That’s not a bug, it’s a feature.” Mr. Shapiro found a reference in the Spring 1981 issue of CoEvolution Quarterly and welcomes any evidence that predates it.
 
FEATURE n. 1. A surprising property of a program. Occasionally docu- mented. To call a property a feature sometimes means the author of the program did not consider the particular case, and the program makes an unexpected, although not strictly speaking an incorrect response. See BUG. "That's not a bug, that's a feature!" A bug can be changed to a feature by documenting it. 2. A well-known and beloved property; a facility. Sometimes features are planned, but are called crocks by others. An approximately correct spectrum:
 
8:48 PM
!!/urban feature
 
@SomeKittens feature: to get involved, amongst it, to go on the pull, to flange.
 
!!/urban "it's not a bug, it's a feature"
 
@FlorianMargaine ["it's not a bug, it's a feature"](http://bug.urbanup.com/5947056): In Computing/software there is actually no such thing as a bug. The correct definition/term is:

"Undocumented feature".
 
!!/urban bug
 
@SomeKittens bug: A fault in a computer system or any physical entity including humanoids.
 
8:48 PM
@Zirak speaking of bugs
 
g'night people
 
Hi guys!, How can I access the 2nd x value from within this array?:
var myarr=[{x:0,y:1},{x:400,y:40}]; -I've tried: myarr.[1].x -won't work(x not defined) ...?
 
!!>var myarr=[{x:0,y:1},{x:400,y:40}]; myarr[1].x;
@Zirak 400
 
soory ya
I didn't have the point in my code...
 
The dot in `.[1]` will produce a syntax error:
!!>var myarr=[{x:0,y:1},{x:400,y:40}]; myarr.[1].x;
 
8:51 PM
it still said that
 
@Zirak "SyntaxError: Unexpected token ["
Then your test-case was overly-optimistic; your bug is elsewhere
 
Zirak here is the 'full' code:
var pointsArr = [{x:0,y:1},{x:400,y:40}];
var paIndex = pointsArr.length+1; //last pointsArr index (first arr);
var lastX = pointsArr[paIndex-1].x;// -> x is undefined
 
0
Q: What is wrong with my Dot Product? [Javascript]

Clay Ellis MurrayI am trying to make a pong game but I wanted to use dot products to do the collisions with the paddles, however whenever I make a dot product objects it never changes much from .9 this is my code to make vectors vector = { make:function(object){ return [object.x + object.width/2,obj...

 
arr[arr.length] is undefined; length is off by 1 (unless it's 0)
 
length = 2
 
8:54 PM
yes
I want to know where to insert the next value
 
length gives you the # of items in the array, not the index of the last item in the array.
 
but I also use it for the last X
ok
I fixed it
 
(Unless the array is 1-indexed, in which case, stop using APL)
 
var lastX = pointsArr[palIndex - 2] or similar
 
I didn't realize it was the number of items in the array.
fix: var paIndex = pointsArr.length; //last pointsArr index (first arr);
Thanks guys
 
8:55 PM
enjoy
 
user457812
How do you not realize that O_o
 
@nil There are two hard problems in CS: Naming things, caching problems, and off-by-one errors
 
:) @SomeKittens
 
I'll leave on that note, bye all
 
20> {ok, [X]} = io:fread( "inp: ", "~d").
inp: 123
{ok,"{"}
21> X.
123
ok, weird...
hahaha, nvm...oh Erlang.
23> [123].
"{"
 
9:00 PM
123.
[123]. is a String you'd get from {ok, X} =
 
You get a list of inputs. Since Erlang sees a list of integers and tries to ASCII them into a string, it saw [123] and turned that into "{"
24> {ok, X} = io:fread( "inp: ", "~d").
inp: 123
** exception error: no match of right hand side value {ok,"{"}
 
Are you trying to read a number or a String ?
 
Number; that's what the ~d is for. Strings have ~s
 
Then it works, doesn't it
 
yeah, but it was weird at first, seeing {ok,"{"}. Didn't know what that { was
 
9:41 PM
Yay for people not understanding the basics...
-1
Q: how to escape single quote in jquery?

user1444739I know i can use \' , but that's not the point here. lets say i have the word "can't". it has "'" in it now this goes in to a var in a function like so : function active(id,clas,match,hometeam,awayteam){ so lets say hometeam has the value of "can't" when i try to use this code: $('#test').htm...

 
Yay for nooboverflow.com
 
Please tell me there's a legit reason to close that question...I mean...why isn't there a "Seriously, RTFM" option?
 
If there was it would be closed already ;)
But anyway, that guy needs to understand what he's doing wrong or he'll write crappy code for the rest of his life
 
"How can I write javascript in jquery ???"
"There is a plugin for that, $.js('if(a > b) return a - b; else return b - a')"
"Why don't you use the jquery abs plugin"
 
$.add(1,3,3,7)
 
9:46 PM
I have a question on prototypical inheritance: let's say I have A and B where I want every new B instance's prototype to be A.
I've seen this syntax around : B.prototype = A.prototype instead of B.prototype = new A()
I don't understand it really
 
new A runs the function and returns a new (possibly modified) copy of A.prototype. That's the difference
 
B.prototype = A.prototype gives both objects the same prototype, i.e. the same methods. Modifying B.prototype would also modify any A objects.
That's why you use a new A object as the prototype of B
 
interesting, thanks
So I can't access any of A's direct (hasOwnProperty = true) members if I use that syntax right?
(I mean members I added directly in the constructor function of A)
 
10:01 PM
!!> var A = function () { this.foo = 42; }; var B = function (){}; B.prototype = new A; B.prototype.constructor = B; (new B).hasOwnProperty('foo');
@Zirak false
 
I meant when writing B.prototype = A.prototype . I can't access any of A's properties I defined in the constructor, right?
 
correct
 
thanks :)
 
In the case of just doing B.prototype = A.prototype, B.prototype.constructor === A, so when you do new B, A will also be called on B.prototype (this might be confusing...), so they will be defined.
Just run a few quick tests in the console, you'll see what I mean
 
doing that right now, thanks :) I've personally never seen the point of using the 'new ' syntax in javascript but as I'm being tested on it tomorrow I need to know it :) I feel that Object.create or composition make much more sense in a prototypical environment
 
10:14 PM
Agreed. new is a retarded touch, trying to appeal to the Java crowd.
 
10:41 PM
facebook.stackoverflow.com Facebookoverflow
wtf
 
11:32 PM
This was surprisingly easy: jsfiddle.net/FQmtC
It could probably be written with reduce
 
00:00 - 15:0015:00 - 00:00

« first day (623 days earlier)      last day (4319 days later) »