Subtract Time (seconds) from a DateTime Sequence

new topic     » topic index » view thread      » older message » newer message

Looking for a simple and effective way to subtract time (in seconds) from a datetime sequence. For example I have the sequence {2012,3,1,0,0,30). If I subtract 60 seconds from it, it should produce the sequence {2012,2,29,23,59,30} I believe.

Supporting the subtraction of up to 86400 seconds is sufficient (1day) I know version 4.x has some useful date/time functions but this is a v3.1 program which cannot be upgraded for the moment.

Any thoughts appreciated.

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu