Api session event editor setting get epoch time
API Endpoint: editorsetting/get_epoch_time.
Description: Get UTC Epoch Time (Milliseconds since 00:00:00 UTC on 1 January 1970) for local Time in this Project
| Name | Importance | Type | Description | Values |
|---|---|---|---|---|
| 0 | REQUIRED | (Integer number) | Year | |
| 1 | REQUIRED | (Integer number) | Month | |
| 2 | REQUIRED | (Integer number) | Day | |
| 3 | REQUIRED | (Integer number) | Hour | |
| 4 | REQUIRED | (Integer number) | Minute | |
| 5 | REQUIRED | (Integer number) | Second |
Response Codes
| Response Code: | Description |
|---|---|
| 200 | Long (UTC Epoch Time (Milliseconds since 00:00:00 UTC on 1 January 1970)) |
| 300-600 | Codes Overview |
Example POST
Curl example POST:
curl 'https://engine.tygron.com/api/session/event/editorsetting/get_epoch_time/' -H 'Content-Type: application/json' -H 'Authorization: Bearer API_TOKEN' -d '[ 2005, 9, 1, 0, 0, 0 ]'JavaScript example POST:
var options = {
method: "POST",
headers: { "Content-Type": "application/json", "Authorization": "Bearer API_TOKEN" },
body: '[ 2005, 9, 1, 0, 0, 0 ]'
};
fetch("https://engine.tygron.com/api/session/event/editorsetting/get_epoch_time/", options)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));