/**
 * 
 */
package Tests2023;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.net.URI;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.time.Instant;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.time.Month;
import java.time.ZoneId;
import java.time.ZonedDateTime;
import java.util.*;



/**
 * @author zettberlin
 *
 */
public class StartTests {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		
        long currentTimeMillis = System.currentTimeMillis()/1000;
        System.out.println("Current Timestamp: " + currentTimeMillis + " seconds");

        ZoneId zone = ZoneId.systemDefault(); 
        LocalDate today = LocalDate.now(zone); 
        ZonedDateTime startOfDay = today.atStartOfDay(zone); 
         
        System.out.println("Start of the day: " + startOfDay.toInstant().toEpochMilli()/1000);
        
        int n = Integer.parseInt("7");
		int sumC=0;
		while (true){
		 sumC++;
		  if (sumC>n) {
			 break; 
		  }	
		}
		
		
		// TODO Auto-generated method stub
		Properties prop = new Properties();
		try {
			prop.load(new FileReader("testBed.config"));
		} catch (FileNotFoundException e) {
			System.out.println("Config File cannot be found in" +System.getProperty("user.dir").toString()+" ..so sad.. \n");
			e.printStackTrace();
		} catch (IOException e) {
			System.out.println("looks like we cannot read the Config File in" +System.getProperty("user.dir").toString()+" ..dammit!.. \n");
			e.printStackTrace();
		}
		System.out.println(System.getProperty("user.dir").toString());
		if (new File("testBed.config").isFile()) {
			System.out.println("found config file, lets begin");
			System.out.println("It says: " + prop.getProperty("test.message"));
			
			Path path = Paths.get(URI.create("file:/C:/test.txt"));
			System.out.println("1 "+path.getClass());
			System.out.println("2 "+path.getFileSystem().getClass());
			Path currentDir = Paths.get(".");
			System.out.println(currentDir.toAbsolutePath());
		}

	}

}
