Libraries anvil time Calendar pack

string pack()
string pack(int level)
Packs the time into compact string representation.
Parameters level -  Level of detail, between 1 and 6: 1 for year, 2 for month, 3 for day of month, 4 for hour, 5 minute, 6 seconds.