Skip to content

Instantly share code, notes, and snippets.

@Cycymomo
Last active December 21, 2015 14:39
Show Gist options
  • Save Cycymomo/6321103 to your computer and use it in GitHub Desktop.
Save Cycymomo/6321103 to your computer and use it in GitHub Desktop.
// 140bytes - http://www.developpez.net/forums/d1362763/webmasters-developpement-web/javascript/ludique-defis-code-en-tweet/
(function(d,t,y){
y=d.getFullYear();return t[(y%100*1.25+'0642'[(y/100-15)%4^0]*1+'033614625035'[d.getMonth()]*1+d.getDate()-!!((!(y%4)&&y%100)||!(y%400)))%7^0]
})(new Date(1789,6,14),['dimanche', 'lundi', 'mardi', 'mercredi', 'jeudi', 'vendredi', 'samedi']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment