/elec/propeller-clock

To get this branch, use:
bzr branch http://bzr.ed.am/elec/propeller-clock

« back to all changes in this revision

Viewing changes to src/digital_clock.cc

  • Committer: Tim Marston
  • Date: 2012-03-10 01:25:02 UTC
  • Revision ID: tim@ed.am-20120310012502-v0jwfjghpp63un6n
removed time singleton, not cause it saved much space, but cause i don't want singletons in this project!

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
 
34
34
static void set_message( bool update )
35
35
{
36
 
        Time &time = Time::get_instance();
37
 
 
38
36
        PString str0( Text::_messages[ 0 ], MESSAGE_LEN );
39
37
//      PString str1( Text::_messages[ 1 ], MESSAGE_LEN );
40
38
        str0.begin();
56
54
//              }
57
55
//              break;
58
56
//      case 1:
59
 
                str0.format( "%d%s %s, %d", time.get_day(),
60
 
                                        time.get_day_suffix(),
61
 
                                        time.get_month_name(), time.get_year() );
 
57
                str0.format( "%d%s %s, %d", Time::get_day(),
 
58
                                        Time::get_day_suffix(),
 
59
                                        Time::get_month_name(), Time::get_year() );
62
60
                Text::set_message( 0, str0 );
63
61
//              Text::set_message( 1, str1 );
64
62
                if( !update ) {