Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. MikeDave888

    Get incorrect days between two dates in UNIX

    Adding UTC worked for that scenario. I will run more scenarios and confirm. Thanks SamBones, very much appreciated!
  2. MikeDave888

    Get incorrect days between two dates in UNIX

    I reviewed this Feb 2020 and it has 29 days (leap year). That could be the reason I got 83 days.
  3. MikeDave888

    Get incorrect days between two dates in UNIX

    This 43200 seems to make no much sense as it yields more incorrect results. Any feedback on how to resolve my above scenarios would be greatly appreciated. Thanks again! Thanks and Regards, Ken
  4. MikeDave888

    Get incorrect days between two dates in UNIX

    The issue seems to be due to time zone change (1 hour forward) on March 8th 2020. But, I was testing them around 3pm and should not have any impact. I did some research online and some post suggested to add 43200 (which seems to be 12 hours). I am not sure if it is the right way to go. Any...
  5. MikeDave888

    Get incorrect days between two dates in UNIX

    Hello everyone, I am getting inconsistent days between two dates as below. Any idea? Any feedback would be greatly appreciated. Thank you everyone! # This returns 42 days -- which is correct > echo $(((`date +%s -d '2020/02/02'` - `date +%s -d '2019/12/22'`) / 86400)) days 42 days # This...
  6. MikeDave888

    Run a Crontab job on odd/even weeks

    Yes, escaping the % with a backslash worked. :-) Thanks feherke, very much appreciated.
  7. MikeDave888

    Run a Crontab job on odd/even weeks

    Hello everyone, I hope you can help me with the issue I am having. I tried to run a Crontab job on odd/even weeks but couldn't get it to work. Below has the detail. I'd greatly appreciate any feedback that you can provide. Thank you... # The job ran and the script got executed. 15 17 * * 1...

Part and Inventory Search

Back
Top