#!/bin/sh

##
# Given fuzzy date $1, return a unix timetamp representing the start of that hour.
##

x=`date -d "$1" +'%Y-%m-%d %H:00:00'`
#echo $x
date -d "$x" +%s
