Article View: alt.privacy.anon-server
Article #325479Re: [OT] Unix Time Stamp - Independence Day 2025 :-)
From: elvis-85792
Date: Thu, 13 Jun 2024 22:08
Date: Thu, 13 Jun 2024 22:08
19 lines
1750 bytes
1750 bytes
> Anyways, here is a Bing AI generated bash script, > ... > timedatectl list-timezones > timezones.txt > > # Output the local time for the passed Unix Epoch Time in each timezone > while IFS= read -r timezone > do > local_time=$(TZ=$timezone date -d "@$epoch_time" '+%a %b %d %Y %H:%M:%S %Z') > printf "%-40s %s\n" "$timezone" "$local_time" > done < timezones.txt That leaves a temp file behind. Could have read the text from a pipe. #!/bin/bash timedatectl list-timezones | while read -r timezone do echo Got a $timezone done
Technical Details
Message-ID:
<slrnv6mrf5.rvu.elvis-85792@notatla.org.uk>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf9.newsdeef.eu!i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!s1-3.netnews.com!news-out.netnews.com!postmaster.netnews.com!us7.netnews.com!not-for-mailReferences:
<v49l70$3lvsk$1@i2pn2.org> <slrnv6gs9o.8q8.elvis-85792@notatla.org.uk> <v49um7$3mbci$1@i2pn2.org> <v4fh5j$3t295$1@i2pn2.org>Show Full Headers
Complete Article Headers
Message-ID: <slrnv6mrf5.rvu.elvis-85792@notatla.org.uk> Subject: Re: [OT] Unix Time Stamp - Independence Day 2025 :-) Date: Thu, 13 Jun 2024 22:08:37 +0000 From: elvis-85792@notatla.org.uk References: <v49l70$3lvsk$1@i2pn2.org> <slrnv6gs9o.8q8.elvis-85792@notatla.org.uk> <v49um7$3mbci$1@i2pn2.org> <v4fh5j$3t295$1@i2pn2.org> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf9.newsdeef.eu!i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!s1-3.netnews.com!news-out.netnews.com!postmaster.netnews.com!us7.netnews.com!not-for-mail X-Trace: DXC=HH8^kmZfCCOk8_PA]20H_EHWonT5<]0TMQ;nb^V>PUfF5[gZBW6J?LLTD;10@6=i=NBShcnjQLBLGHg1;cjm?STKHLgaX\gZ3KJWnAHEVj]j3BZkS<lo_3cF@ X-Complaints-To: support@blocknews.net Newsgroups: alt.privacy.anon-server X-noarchive: yes X-no-archive: yes User-Agent: slrn/1.0.3 (Linux) Lines: 19 NNTP-Posting-Host: 127.0.0.1 X-Trace: 1718316517 reader.netnews.com 3102251 127.0.0.1:56309 X-Received-Bytes: 1377