You would track time by observing the sun and moon. The Egyptians used a solar calendar with 365 days, while the Mayans had a complex calendar system with multiple interlocking cycles based on astronomical observations.
Both cultures emphasized agricultural seasons and religious events in their calendars.