コード例 #1
0
 protected override void Process(SmallTimeRenderer st)
 {
     if ((st.RenderTime.Hour == SPECIAL_ZERO_MIDNIGHT) || (st.RenderTime.Hour == SPECIAL_TWENTYFOUR_MIDNIGHT))
     {
         st.ForceRenderText(RenderElements.HourText, "midnight");
     }
     if (st.RenderTime.Hour == SPECIAL_12_NOON)
     {
         st.ForceRenderText(RenderElements.HourText, "noon");
     }
 }
コード例 #2
0
 protected override void Process(SmallTimeRenderer st)
 {
     if ((st.RenderTime.Minute == QUARTER_PAST_MINS) || (st.RenderTime.Minute == QUARTER_TO_MINS))
     {
         st.ForceRenderText(RenderElements.MinuteText, "quarter");
     }
     if (st.RenderTime.Minute == HALF_PAST_MINS)
     {
         st.ForceRenderText(RenderElements.MinuteText, "half");
     }
     if (st.RenderTime.Minute == 0)
     {
         st.ForceRenderText(RenderElements.Intermediary, " exactly ");
         st.FormatString = "%HUR%%INT%";  // Remove the minute capability
     }
 }