Android Open Source - 5th format Time






From Project

Back to project page 5th.

License

The source code is released under:

GNU General Public License

If you think the Android project 5th listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

?package com.zhanglin.practice;
//from  ww w .  j  av a2  s  .co  m
public class formatTime
{
  public formatTime()
  {
    super();
  }
  public String formatTime(int time)
  {
    time/=1000;
    int minute=time/60;
    //int hour=minute/60;
    int second=time%60;
    minute%=60;
    return String.format("%02d:%02d",minute,second);
  }
  public String formatTime(long time)
  {
    time/=1000;
    long minute=time/60;
    //int hour=minute/60;
    long second=time%60;
    minute%=60;
    return String.format("%02d:%02d",minute,second);
  }
}




Java Source Code List

.AlbumActivity.java
.MainActivity.java
.PlayListActivity.java
.alb.java
.art.java
com.zhanglin.practice.About.java
com.zhanglin.practice.ArtistActivity.java
com.zhanglin.practice.ChangeGestureDetector.java
com.zhanglin.practice.DataBase.java
com.zhanglin.practice.MusicListAdapter.java
com.zhanglin.practice.PlayerServices.java
com.zhanglin.practice.PlayingActivity.java
com.zhanglin.practice.PublicList.java
com.zhanglin.practice.SetModeActivity.java
com.zhanglin.practice.SongsActivity.java
.formatTime.java