Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
  • Ruby

Idiom #115 Compare dates

Set boolean b to true if date d1 is strictly before date d2 ; false otherwise.

b = d1 < d2
bool b = d1 < d2;

New implementation...
< >
programming-idioms.org