P

#### Personne

I had a vbscript doing this for me, I was thinking converting this

function to PS, but I wonder if a build-in .NET which I can call with

PS was already existing

var filetime = (factor * filesize) / kps[x];

yearmod = filetime % 31557900;

year = Math.floor(filetime / 31557900);

day = Math.floor(yearmod / 86460);

daymod = filetime % 86460;

hour = Math.floor(daymod / 3600);

hourmod = filetime % 3600;

minute = Math.floor(hourmod / 60);

second = Math.floor(filetime % 60);

Input (in sec) : 91500

Returns: 1 Days 1 Hours 25 Minutes 0 Seconds

Thank you for your help

function to PS, but I wonder if a build-in .NET which I can call with

PS was already existing

var filetime = (factor * filesize) / kps[x];

yearmod = filetime % 31557900;

year = Math.floor(filetime / 31557900);

day = Math.floor(yearmod / 86460);

daymod = filetime % 86460;

hour = Math.floor(daymod / 3600);

hourmod = filetime % 3600;

minute = Math.floor(hourmod / 60);

second = Math.floor(filetime % 60);

Input (in sec) : 91500

Returns: 1 Days 1 Hours 25 Minutes 0 Seconds

Thank you for your help