Here you can find the source of getYearStartTime()
public static String getYearStartTime()
//package com.java2s; import java.util.Calendar; import java.util.GregorianCalendar; public class Main { public static String getYearStartTime() { return new GregorianCalendar().get(Calendar.YEAR) + "-01-01 00:00:00"; }//from ww w .ja v a 2 s.co m }