I am trying to convert a date from epoch to year month day and get the correct date.

```
my $day = 18322;
my ($y, $m, $d) = (gmtime 86400*$day)[5,4,3];

```

The epoch date is `1583020800` The conversion is as follows `$y is 120 $m is 2 $d is 1`
I guess I have to add `$y = $y+1900` I get the correct year, I can add 1 to `$m` to get the correct month the day `$d` I don't have to add anything to. Is this correct. I am taking over code for someone but I have no idea what `[5,4,3]` does.