we use hp-ux servers do we need to get the datetime value in the bash shell script 2 hours ago?
How can i do this?
date -d -2hours; date --version
Thursday 14 02:38:08 CEST 2011date (GNU coreutils) 7.4
I am not an expert shell script, but you can check this site on unix.com . They give this example to subtract from dates:
# subtract from any date date --date "$dte 3 days 5 hours 10 sec ago" date --date "$dte -3 days -5 hours -10 sec"
Source: https://habr.com/ru/post/1745176/More articles:How do I see ** all ** current defined variables in PHP? - debuggingCSS selector for the last occurrence of the class on the page - cssAdd custom field key to functions.php - phpMonotouch Classes - c #Must read resources for NoSQL developers - databaseJava JTree - How to check if node is displayed? - javaASP.NET Dashboard / Widgets - asp.netWhy can't my PHP log file be fully text? - phpMultiple asynchronous calls to the webservice method in the application fail with the exception - c #How can I do the following drawing in opengl? - openglAll Articles