I've been looking around for a while now and need some assistance with something that seems super simple to me but just isn't as I am pretty green with HTML and scripting.

My main objective is to have epoch/unix time being updated on the link below every time the web page is served.

How can I do this within HTML (see code below)? I've also looked into writing a bash script that replaces the epoch time parameters in the file and run a cron job that edits every so often.

For example I have the following parameters in the img\_src link below:

t1=1420591677&t2=1421196477 

where t1=current\_system\_epoch\_time and t2=(current\_system\_epoch\_time - 12hrs)

```
<!DOCTYPE html>
<html>

<body>

<img src="http://nagiosserver/cgi-bin/nagios3/trends.cgi?createimage&t1=1420591677&t2=1421196477&assumeinitialstates=yes&assumestatesduringnotrunning=yes&initialassumedhoststate=0&initialassumedservicestate=0&assumestateretention=yes&includesoftstates=no&host=<hostname>&backtrack=8&zoom=4" >

</body>

</html>

```

If I need to explain anything further, please let me know! Thank you!