Start Date + Time Duration = End Date/Time calculator?
I am in need of a calculator where I could put in the date and time, and then enter the duration, and it'd output the ending date/time.
This is for several Linux backup servers I have in place. I use crontab to start my backup scripts to backup various servers.
I know the approximate sizes beforehand, and use a bandwidth calculator to estimate the times the backup will take.
My head is starting to hurt from manually calculating the end-time of my script execution, so a tool like this would help heaps!
Anyone seen anything that does this?
I've tried googling for it... seems Time is such a BROAD subject, I'm having trouble finding the proverbial needle :)
I doubt there would be something like that, but it shouldn't be too difficult to accomplish with a bash script or something. Enter the size and bandwidth, do the math to work out how many seconds it'll take and then generate a timestamp for the start time, plus the amount of seconds and generate a date string from the new timestamp. bash and bc can do the math, date can do the timestamp work :)
Actually, you're (probably) in luck ToBe. You already have a tool installed to do this: date
Pull up the man page if you don't believe me, or run a command like so:
That date trick is exactly what I need. THANKS!!!
|All times are GMT -5. The time now is 01:37 PM.|