//
// Copyright (c) 2012 Samsung Electronics Co., Ltd.
//
-// Licensed under the Flora License, Version 1.0 (the License);
+// Licensed under the Flora License, Version 1.1 (the License);
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
* @brief This is the implementation file for CommonUtil class.
*/
-#include <FApp.h>
-#include <FUi.h>
#include <GlTypes.h>
#include "GlCommonUtil.h"
static const int H_DEFAULT_THUMBNAIL = 127;
static const int BASE_STANDARD = 1000;
static const int FORMAT_TIME = 10;
-static const String DATETIME_FORMAT = L"%02d:%02d";
+static const String DATETIME_FORMAT = L"%02d:%02d:%02d";
Bitmap*
CommonUtil::GetEmptyThumbnailN(void)
}
String
-CommonUtil::DurationToTimeString(long duration)
+CommonUtil::DurationToTimeString(const long duration)
{
String strTime;
DateTime dateTime;
dateTime.AddSeconds(duration / BASE_STANDARD);
- strTime.Format(FORMAT_TIME, DATETIME_FORMAT.GetPointer(), dateTime.GetMinute(), dateTime.GetSecond());
+ strTime.Format(FORMAT_TIME, DATETIME_FORMAT.GetPointer(), dateTime.GetHour(), dateTime.GetMinute(), dateTime.GetSecond());
return strTime;
}