Both the old Ruby implementation and this version (lifted from the link in the comment above) use one hour, so that's why I kept it unchanged.