going-flying.com gemini git repository
a3302b7c69df2e7fa12a117e52c953aad34107df - Matthew Ernisse - 1614028342
add date cgi
diff --git a/cgi-bin/date b/cgi-bin/date index f6b6e23..b9aeb48 100755 --- a/cgi-bin/date +++ b/cgi-bin/date @@ -1,4 +1,31 @@ #!/usr/bin/env python3 +'''date (c) 2021 Matthew J Ernisse <matt@going-flying.com> +All Rights Reserved. + +Redistribution and use in source and binary forms, +with or without modification, are permitted provided +that the following conditions are met: + + * Redistributions of source code must retain the + above copyright notice, this list of conditions + and the following disclaimer. + * Redistributions in binary form must reproduce + the above copyright notice, this list of conditions + and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS +OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR +TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE +USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +''' import datetime import dateutil.tz import gmicgi diff --git a/index.gmi b/index.gmi index 656bddf..d6f63ac 100644 --- a/index.gmi +++ b/index.gmi @@ -26,6 +26,7 @@ For the interested this capsule is running Molly Brown in a Docker container, bu ## CGI Toolbox Convert from/to binary, hexidecimal, decimal! URL quote and unquote! Base64 encode and decode! Base32 encoded or TOTP encoded random numbers! => /cgi-bin/converter/ CGI Toolbox +=> /cgi-bin/dates/ Dates and Things => /git/cgi/gemini.git/tree/master/cgi-bin/converter?raw Source ## Feeds