/*
CLASS {NATIVE_Date_time|_Java}, NATIVE :

*/

public class AL4_date_time
{
    /*
    // NATIVE {Date_time} functions code:
    
    CONST STR :
        NATIVE_Date_time_import = @
        "import java.util.Calendar;"
        "import java.util.GregorianCalendar;"
        
        NATIVE_Date = @
        "   try {"
        "       GregorianCalendar d = new GregorianCalendar("
        "           X_Year, X_Month-1, X_Day);"
        "       RESULT = d.getTimeInMillis();"
        "   }"
        "   catch(Exception E) {"
        "       AL4_system.Any_exception(E);"
        "   }"
        
        NATIVE_Now = @
        "   GregorianCalendar d = new GregorianCalendar();"
        "   RESULT = d.getTimeInMillis();"
        
        NATIVE_UTC_now = @
        "   GregorianCalendar d = new GregorianCalendar();"
        "   RESULT = (d.getTimeInMillis() - d.get(Calendar.ZONE_OFFSET));"
        
        NATIVE_Year = @
        "   GregorianCalendar d = new GregorianCalendar();"
        "   d.setTimeInMillis((long)(X_D));"
        "   RESULT = d.get(Calendar.YEAR);"
        
        NATIVE_Month = @
        "   GregorianCalendar d = new GregorianCalendar();"
        "   d.setTimeInMillis((long)(X_D));"
        "   RESULT = d.get(Calendar.MONTH) + 1;"
        
        NATIVE_Day = @
        "   GregorianCalendar d = new GregorianCalendar();"
        "   d.setTimeInMillis((long)(X_D));"
        "   RESULT = d.get(Calendar.DAY_OF_MONTH);"
        
        NATIVE_Week_day = @
        "   GregorianCalendar d = new GregorianCalendar();"
        "   d.setTimeInMillis((long)(X_D));"
        "   RESULT = (byte)(d.get(Calendar.DAY_OF_WEEK) - 1);"
        
        NATIVE_Hour = @
        "   GregorianCalendar d = new GregorianCalendar();"
        "   d.setTimeInMillis((long)(X_D));"
        "   RESULT = d.get(Calendar.HOUR_OF_DAY);"
        
        NATIVE_Minute = @
        "   GregorianCalendar d = new GregorianCalendar();"
        "   d.setTimeInMillis((long)(X_D));"
        "   RESULT = d.get(Calendar.MINUTE);"
        
        NATIVE_Second = @
        "   GregorianCalendar d = new GregorianCalendar();"
        "   d.setTimeInMillis((long)(X_D));"
        "   RESULT = d.get(Calendar.SECOND);"
        
        NATIVE_Millisecond = @
        "   GregorianCalendar d = new GregorianCalendar();"
        "   d.setTimeInMillis((long)(X_D));"
        "   RESULT = d.get(Calendar.MILLISECOND);"
        
        NATIVE_Day_of_year = @
        "   GregorianCalendar d = new GregorianCalendar();"
        "   d.setTimeInMillis((long)(X_D));"
        "   RESULT = d.get(Calendar.DAY_OF_YEAR);"
        
        NATIVE_Days_in_month = @
        "   GregorianCalendar d = new GregorianCalendar();"
        "   d.setTimeInMillis((long)(X_D));"
        "   RESULT = d.getActualMaximum(Calendar.DAY_OF_MONTH);" 
        
        NATIVE_Date_time_Str = @
        "   GregorianCalendar d = new GregorianCalendar();"
        "   d.setTimeInMillis((long)(X_D));"
        "   RESULT = String.format(" #QU "%tc" #QU ", d);"

        .
         
END
*/

}
