I am trying to get the directions for the future time using Google Calculate Directions API API. I want to enter the specific timestamp and I see that we have to enter the
time in seconds since midnight, January 1, 1970 UTC
. I am confused on how to convert the required time in the required time zone as an integer specified. For example, I want to enter 24th August 2019 08 AM PDT timestamp for the API, how should I convert this to the required input format. I searched online and different websites are giving me different answers.
The answers given shows the javascript way of obtaining the value, however, I am looking to implement it in c#.