Look into RT::Date class - lib/RT/Date.pm there are several simple methods to add time to the date.
On Tue, Oct 21, 2008 at 6:29 PM, Violetta Wawryk <[EMAIL PROTECTED]> wrote: > Hi, > > can anyone tell me how I can set "Due" depending on the "Created"-Date? > > I know how to get the the Creationdate: > my $createdate = ($self->TicketObj->CreatedObj); > > But how can I encrease it for example 14 days? > > I did find something that takes the scrip execution time and adds 1 day. > $duedate->Set(Format=>'unknown', Value=>'1 days'); > But that doesn't work if I want to change it 3 days later, because than > I would have all in all 17 days. > > I know that I can write the new date with: > $self->TicketObj->SetDue($duedate->ISO); > > > So all I need is the step inbetween. > > Thanks, > > Violetta > > > -- > ________________________________ creating IT solutions > Violetta J. Wawryk science + computing ag > IT-Service Hagellocher Weg 73 > phone +49 7071 9457 282 72070 Tuebingen, Germany > fax +49 7071 9457 211 www.science-computing.de > -- > Vorstand/Board of Management: > Dr. Bernd Finkbeiner, Dr. Florian Geyer, > Dr. Roland Niemeier, Dr. Arno Steitz, Dr. Ingrid Zech > Vorsitzender des Aufsichtsrats/ > Chairman of the Supervisory Board: > Prof. Dr. Hanns Ruder > Sitz/Registered Office: Tuebingen > Registergericht/Registration Court: Stuttgart > Registernummer/Commercial Register No.: HRB 382196 > > > _______________________________________________ > http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users > > Community help: http://wiki.bestpractical.com > Commercial support: [EMAIL PROTECTED] > > > Discover RT's hidden secrets with RT Essentials from O'Reilly Media. > Buy a copy at http://rtbook.bestpractical.com > -- Best regards, Ruslan. _______________________________________________ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: [EMAIL PROTECTED] Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com