Need get Time in a 24 hour format while adding Time

后端 未结 3 1623
北恋
北恋 2021-01-08 01:05

I had written a function for Adding time as given below

private void Delay15Minute() {
        String pkManifest = manifest.pkManifestNo;
        manifest_he         


        
3条回答
  •  有刺的猬
    2021-01-08 02:05

    Simply create the instance of Calendar and get 24 hr time by,

    Calendar c = Calendar.getInstance();
    
    int Hr24=c.get(Calendar.HOUR_OF_DAY);
    int Min=c.get(Calendar.MINUTE);
    

提交回复
热议问题