Converts the given duration into seconds.
static int from(int hour, [int minute = 0, int second = 0]) => hour * Hour.seconds + minute * Minute.seconds + second;