Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.text.SimpleDateFormat;

public class Main {
    public static String getExtractDbFileName(int version) {
        //File format:race_v + DB_VERSION + _ + timestamp

        Long time = System.currentTimeMillis();
        String dateStr = new SimpleDateFormat("yyyyMMdd_kkmmss").format(time);
        return "Race_v" + Integer.toString(version) + "_" + dateStr;
    }
}