I am working with a timestamp which is in the following format which I am told is know as ISO 8601 :
I would like to be able to calculate the timestamp both 15 minutes and 30 minutes before the current timestamp.
UPDATE: I need the output to be in the same format as the original timestamp
I have some code which retrieves the timestamp at any given time, but how can I get a script to calculate the timestamp at a given number of minutes before the current timestamp- for this example I would like to know both 15 minutes and 30 minutes before.
Any help appreciated.