Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
現在の日付の1970年以降のミリ秒数を取得する方法を説明するこの投稿を見ました:
1970年以降の日付値の経過秒数を取得する方法は?
私の質問は: 任意の日付のミリ秒単位でこの値を取得する方法は?
ありがとう !!
カレンダーc=new Calendar();
Calendar c = Calendar.getInstance(); // year, month, day, hourOfDay, minute c.set(1990, 7, 12, 9, 34); long millis = c.getTimeInMillis();