# What is this code for?

**URL:** <https://forum.kirupa.com/t/what-is-this-code-for/228147>\
**Category:** Uncategorized\
**Created:** [June 5, 2007, 6:25pm UTC](https://forum.kirupa.com/t/what-is-this-code-for/228147 "2007-06-05T18:25:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![abramelin](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/abramelin/32/3256_2.png) [@abramelin](https://forum.kirupa.com/u/abramelin)\
**Post date:** [June 5, 2007, 6:25pm UTC](https://forum.kirupa.com/t/what-is-this-code-for/228147/1 "2007-06-05T18:25:38Z")

</div>

i have an actionscript code question for you masters. can anyone explain me what this code exacly makes?

```auto

MaDate = new Date();
        hour = MaDate.getHours();
        minute = MaDate.getMinutes();

    divisionminute = minute*0.1;
    with (_root.animation) {
        gotoAndStop((hour*6)+(Math.round(divisionminute))+1);
    }
    if (length(minute) == 1) {
        minute = "0"+minute;
    }
    if (length(hour) == 1) {
        hour = "0"+hour;
    }

```

thanks
