/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;
import java.time.LocalDateTime;
import java.time.ZonedDateTime;
import java.time.format.DateTimeFormatter;
import java.time.ZoneId;




/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	
	public static void main (String[] args) throws java.lang.Exception
	{
		Date date = new Date();
		System.out.println(date.getTime());
		
		System.out.println();
		
		LocalDateTime dateTime = LocalDateTime.now();
		Date date2 = Date.from(dateTime.atZone(ZoneId.of("America/Sao_Paulo")).toInstant());
		System.out.println(date2.getTime());
		
		System.out.println();
		
		String str = "1986-04-08 12:30";
		DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm");
		LocalDateTime dateTime2 = LocalDateTime.parse(str, formatter);
		
		Date date3 = Date.from(dateTime2.atZone(ZoneId.of("Europe/London")).toInstant());
		System.out.println(date3.getTime());

	}
}