I did it! Script to compute UNIX time!

I think I have found the solution, before the next local variable in the code of @rextended
https://forum.mikrotik.com/viewtopic.php?p=1029048#p994849


:local yyyy [:pick $vdate ($vdoff->0) ($vdoff->1)] ; :if (((($yyyyy - 1968) % 4) = 0) do={:set ($arrm->1) -1; :set ($arrm->2) 30}

Add this code snippet


 
    :if ($vdate ~ "....-...-..") do={
        :set vdoff [:toarray "0,4,6,8,9,11"]
        :set M     ([:find "xxanebarprayunulugepctovecANEBARPRAYUNULUGEPCTOVEC" [:pick $vdate ($vdoff->2) ($vdoff->3)] -1] / 2)
        :if ($M>12) do={:set M ($M - 12)}
    }

Test:

:put [$unixtodatetime [$datetime2epoch "2023-Aug-31 16:55"]]
output:  2023/08/31 16:55:00