Javaで日付文字列からタイムスタンプを取る
SimpleDateFormat sdf = new SimpleDateFormat(); sdf.applyPattern("yyyy/MM/dd HH:mm:ss); Date d = sdf.parse("2014/01/01 11:00:22"); long timeStamp = d.getTime() / 1000;
SimpleDateFormat sdf = new SimpleDateFormat(); sdf.applyPattern("yyyy/MM/dd HH:mm:ss); Date d = sdf.parse("2014/01/01 11:00:22"); long timeStamp = d.getTime() / 1000;