In many contemporary studies on solar activity, time is typically treated as a single variable or as a linear variable over a given timescale. In traditional Chinese culture, time is represented by two ordinal categorical labels—Heavenly Stems and Earthly Branches—across four timescales. In recent studies, these two categorical variables were transformed into two cosine waves and significant correlations were found between these waves and the yearly variations in tropical cyclones and sunspot numbers. This study followed the methods of previous studies and provided explicit mathematical expressions. The objective of this study was to investigate the possible relationship between time represented by two cosine waves derived from the Ganzhi calendar and the spatial attributes of solar activity. Results showed that, on the yearly timescale, significant correlations were found between the two cosine waves and solar activity in the northern and southern hemispheres of the Sun, and three distinct patterns were identified. Based on these results, a linear formula for solar activity was proposed, from which estimates for the sunspot cycle and the solar magnetic cycle can be derived. In conclusion, treating time as two cosine waves may be useful for extracting spatial as well as temporal information from solar activity.