if would then be possible to replace all this in 2 lines:
```ruby
raise "Invalid UNIX epoch value '#{date}'" unless /^\d+$/ === date
(date.to_f * 1000).to_i
```