Hello, I am trying to write a script to increment my time by 30 minutes for a period of 3 days. Currently I have tried installing DateTime without any success. I was wondering if there is an easier or more efficient way of writing this.

For example. I have a starting date and time such as this. 17/12/2012 00:00:00

Re: [cuboidgraphix] Need a script to increment date and time by 30 minutes
[In reply to]

Can't Post

Start by using the POSIX mktime() function to calculate the start and end time values. Then create a loop that increments the start time by the required amount as it outputs it as formatted string via strftime.