package Day14_Math;
import java.util.Date;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Scanner;
public class WhenYouCome {
public static void main(String[] args) throws ParseException {
@SuppressWarnings("resource")
Scanner sc=new Scanner(System.in);
System.out.println("请输入你的出生日期:");
String line=sc.nextLine();
//
SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd");
Date d=sdf.parse(line);
//
long mytime=d.getTime();
//
long time1=System.currentTimeMillis();
//
long time2=time1-mytime;
//
long day=time2/1000/60/60/24;
System.out.println("你来到世界上已经"+day+"天了!");
}
}