Skip to content

Instantly share code, notes, and snippets.

View Jawschamp's full-sized avatar

Jaws Jawschamp

View GitHub Profile
from sanic import Sanic, Request
from sanic.response import json
from datetime import datetime
import pytz # For timezone handling
app = Sanic(__name__)
# Function for ordinal numbers
def p_ordinal(n):
if 11 <= (n % 100) <= 13: