im attempting to create a python script that log into local server via http request but it requires local time but i think its encrypted but not sure example: 2022.08.07.01.09.59 = 1659823799756 i took a look at the js code
function getDuration(time) {
let duration = 0;
if (time.seconds) {
duration += time.seconds * 1000;
}
if (time.minutes) {
duration += time.minutes * 60 * 1000;
}
if (time.hours) {
duration += time.hours * 60 * 60 * 1000;
}
if (time.days) {
duration += time.days * 24 * 60 * 60 * 1000;
}
return duration;