Turn today's date into a unix timestamp

Hi there,

I'm looking to retreive the current time and date, round it to the elapsing hour, and turn it into a UNIX timestamp.

I guess I can use this to turn the date into a timestamp : 

using Toybox.Time;
var now = new Time.Moment(Time.now().value()); // UNIX epoch 631148400

However I struggle in finding an easy way to make round it to the elapsing hour :
eg. If the current time is 15h32, I would like to change it to 15h00. Then get the timestamp for the full date and modified time.

Any advice?

Cheers,

Nicolas