/// <summary>
/// Get Hour Text from Double Value
/// </summary>
/// <param name="time"></param>
/// <returns></returns>
public static string GetHourText(double time)
{
string[] timeParts = new string[2];
timeParts[0] = (((int)time) / 60).ToString("00");
timeParts[1] = (((int)time) % 60).ToString("00");
return string.Format(ERPUtilityResources.FormatTime, timeParts[0], timeParts[1]);
}
/// Get Hour Text from Double Value
/// </summary>
/// <param name="time"></param>
/// <returns></returns>
public static string GetHourText(double time)
{
string[] timeParts = new string[2];
timeParts[0] = (((int)time) / 60).ToString("00");
timeParts[1] = (((int)time) % 60).ToString("00");
return string.Format(ERPUtilityResources.FormatTime, timeParts[0], timeParts[1]);
}
No comments:
Post a Comment