import struct


def pack_date(date):
    """
    Packs a date (assumed to be UTC) as a struct with of 16-bit, unsigned `year`
    (big endian), 1 byte `month`, and 1 byte `day`.
    """
    return struct.pack("!HBB", date.year, date.month, date.day)