Skip to content

Instantly share code, notes, and snippets.

@ymendel
Created September 7, 2010 15:58
Show Gist options
  • Save ymendel/568575 to your computer and use it in GitHub Desktop.
Save ymendel/568575 to your computer and use it in GitHub Desktop.
def self.wday_bitfield_values
# These values are generated by calculating 2^x, where x is the "wday" (0..6) of a DateTime ...
[ 1, 2, 4, 8, 16, 32, 64 ]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment