Java Time Format formatTimeStep(Integer numberOfTimestepsPerYear, int stepNumber)

Here you can find the source of formatTimeStep(Integer numberOfTimestepsPerYear, int stepNumber)

Description

format Time Step

License

Open Source License

Declaration

private static String formatTimeStep(Integer numberOfTimestepsPerYear, int stepNumber) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    private static String formatTimeStep(Integer numberOfTimestepsPerYear, int stepNumber) {
        return String.format("%.3f", (double) stepNumber / numberOfTimestepsPerYear);
    }/*from  w w w.java 2 s. co  m*/
}

Related

  1. formatTimestamp(String timestamp)
  2. formatTimestampEnd(String timestamp)
  3. formatTimestampForFilename(final long timestamp)
  4. formatTimestampForLogging(final long rawNanosTimestamp)
  5. formatTimestampStart(String timestamp)
  6. formatTimeString(long millisecond)
  7. formatTimeString(String time)
  8. formatTimeTakenNs(long startTimeNs, String message)
  9. formatTimeToString(long milisec)