本文整理汇总了C++中Lang::getMonthName方法的典型用法代码示例。如果您正苦于以下问题:C++ Lang::getMonthName方法的具体用法?C++ Lang::getMonthName怎么用?C++ Lang::getMonthName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Lang
的用法示例。
在下文中一共展示了Lang::getMonthName方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: writeHeaderInfo
/*****************************************************
**
** EphemExpert --- writeHeaderInfo
**
******************************************************/
void EphemExpert::writeHeaderInfo( Writer *writer )
{
if ( ! show_header ) return;
Lang lang;
wxString s;
s.Printf( wxT ( "%s %d" ), (const wxChar*)lang.getMonthName( month-1 ), year );
writer->writeHeader1( s );
}
示例2: writeDetails
/*****************************************************
**
** EphemExpert --- writeDetails
**
******************************************************/
void EphemExpert::writeDetails( Writer *writer )
{
int i;
wxString s, tz_str, thetime;
Lang lang;
Formatter *formatter = Formatter::get();
TzUtil tzu;
if ( ! cdetails ) calcDetails();
s.Printf( wxT ( "%s %d" ), (const wxChar*)lang.getMonthName( month-1 ), year );
writer->writeHeader1( s );
int line = 1;
int nb_leaps = 0;
for ( i = 0; i < nb_days; i++ )
{
if ( i > 0 && weekday[i] == 0 ) nb_leaps++;
}
Table table( 5, nb_days+1+nb_leaps );
table.setHeader( 0, _( "Day" ));
table.setHeader( 1, _( "Sidereal Time" ));
table.setHeader( 2, _( "Sunrise" ));
table.setHeader( 3, _( "Sunset" ));
table.setHeader( 4, _( "Tithi (Sunrise)" ));
line = 1;
for ( i = 0; i < nb_days; i++ )
{
// blank line on weekend
if ( i > 0 && weekday[i] == 0 )
{
for ( int j = 0; j < 5; j++ ) table.setHeaderEntry( j, line, wxEmptyString );
line++;
}
s.Printf( wxT( "%02d %s" ), i+1, (const wxChar*)lang.getWeekdayName( weekday[i] ).Left(2) );
if ( testDayIndexForCurrent( i+1 )) table.setHeaderEntry( 0, line, s );
else table.setEntry( 0, line, s );
table.setEntry( 1, line, formatter->getTimeFormatted( st[i] ) );
TzFormattedDate fd = tzu.getDateFormatted( sunrise[i], isLocaltime );
thetime = fd.timeFormatted;
//if ( dstchange ) thetime << wxT( " " ) << fd.timezoneFormatted;
table.setEntry( 2, line, thetime );
fd = tzu.getDateFormatted( sunset[i], isLocaltime );
table.setEntry( 3, line, fd.timeFormatted );
table.setEntry( 4, line, lang.getTithiName( tithi[i] ));
line++;
}
writer->writeTable( table );
}