From eae5a1e20bd63369a4a4482a0adaa12f5fdf9b93 Mon Sep 17 00:00:00 2001 From: Advaith Menon Date: Tue, 25 Nov 2025 04:37:40 -0500 Subject: [PATCH] Add time.bp4k.net source code * Add simple HTTP time service source code --- unix/cgi/timehttp.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 unix/cgi/timehttp.sh diff --git a/unix/cgi/timehttp.sh b/unix/cgi/timehttp.sh new file mode 100644 index 0000000..f8e7fc7 --- /dev/null +++ b/unix/cgi/timehttp.sh @@ -0,0 +1,13 @@ +#!/bin/bash +set -e + +export TZ="America/New_York" + +echo "Content-Type: text/html" +echo + +if [ "$QUERY_STRING" = "epoch=1" ]; then + date +%s +else + date +fi -- 2.47.3