8 #include "karmutility.h"
10 TQString formatTime( long minutes, bool decimal )
14 time.sprintf( "%.2f", minutes / 60.0);
15 time.replace( '.', TDEGlobal::locale()->decimalSymbol() );
17 else time.sprintf( "%s%ld:%02ld",
18 (minutes < 0) ? TDEGlobal::locale()->negativeSign().utf8().data() : "",
19 labs(minutes / 60), labs(minutes % 60));
|