This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 设置百分比代码 | |
* 获取最大值距离Y轴最高点的百分比计算得到的float值, | |
* 由最大值柱状高度和最大值距Y轴最高点距离的比值得到,1:1 即50%,此时为100f | |
* 以下为2种情况的数据: | |
* 1、大于等于50%:100f是50% 50f是75% 0f是100% | |
* 2、小于等于50%:100f是50% 200f是1/3 300f是1/4 400f是1/5 | |
* | |
* @return 最大值距离Y轴最高点的百分比计算得到的float值 | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class TimeUtils { | |
/** | |
* 秒数转化成时分秒格式 | |
* | |
* @param time 秒数 | |
* @return 时分秒格式 00:00:00 | |
*/ | |
public static StringBuffer secondToHMS(int time) { | |
public static StringBuffer secondToHMS(int time) { |