fork(27) download
  1. // your code goes here
  2. var d1 = new Date(Date.parse("Mon, 25 Dec 1995 13:30:00 +0430"));
  3. var d2 = new Date(Date.parse("Mon, 25 Dec 1995 13:30:00 GMT"));
  4. print("d1:", d1);
  5. print("d2:", d2);
  6. if (d1<d2) {
  7. print("d1 is less then d2");
  8. } else if (d1>d2) {
  9. print("d1 is greater then d2");
  10. } else {
  11. print("d1 equals to d2");
  12. }
  13.  
Success #stdin #stdout 0.02s 4984KB
stdin
Standard input is empty
stdout
d1: Mon Dec 25 1995 09:00:00 GMT+0000
d2: Mon Dec 25 1995 13:30:00 GMT+0000
d1 is less then d2