1
0
mirror of synced 2025-12-26 15:27:59 +08:00

toYmdhms改为toYmdHms

This commit is contained in:
6tail
2020-04-20 12:51:10 +08:00
parent 19ac8dd54a
commit b7b7b749c3
3 changed files with 8 additions and 6 deletions

View File

@@ -440,13 +440,13 @@ public class Solar{
return year+"-"+(month<10?"0":"")+month+"-"+(day<10?"0":"")+day;
}
public String toYmdhms(){
public String toYmdHms(){
return toYmd()+" "+(hour<10?"0":"")+hour+":"+(minute<10?"0":"")+minute+":"+(second<10?"0":"")+second;
}
public String toFullString(){
StringBuilder s = new StringBuilder();
s.append(toYmdhms());
s.append(toYmdHms());
if(isLeapYear()){
s.append(" ");
s.append("闰年");