Hi Atanas

I just have one question regarding a certain section of your code, which I've 
already seen in the other Static stat from OTRS.
What does this do?

# get current time
    my ($s, $m, $h, $D, $M, $Y);
    my ($Ymin, $Ymax, $Select, %Agents, @row);

    ($s, $m, $h, $D, $M, $Y) = $Self->{TimeObject}->SystemTime2Date(
        SystemTime => $Self->{TimeObject}->SystemTime(),
    );

    # get one month before
    if ($M == 1) {
        $M = 12;
        $Y = $Y - 1;
    }
    else {
        $M = $M -1;
    }

Thanks and regards

María Alejandra Piedra
Unidad de Informática y Sistemas de Información
IICA (506) 2216-0171
alejandra.pie...@iica.int<mailto:alejandra.pie...@iica.int>

---------------------------------------------------------------------
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs

NEW! ENTERPRISE SUBSCRIPTION - Get more information NOW!
http://www.otrs.com/en/support/enterprise-subscription/

Reply via email to