/*
CLASS {NATIVE_Date_time|_CSharp}, NATIVE :

(*********************/
//using System;
//using System.Collections.Generic;
//using System.Linq;
//using System.Text;


public class AL4_date_time
{
    /*
    // {Date_time} native functions code:
    
    CONST STR :
        NATIVE_Date_time_import = ""
    
        NATIVE_Date = @
        "   try {"
        "       DateTime d = new DateTime("
        "					 (int)X_Year, (int)X_Month, (int)X_Day);"
        "       RESULT = d.ToOADate() * 24.0 * 3600000;"
        "   }"
        "   catch(Exception E) {"
        "       AL4_system.Any_exception(E);"
        "   }"
        
        NATIVE_Now = @
        "   RESULT = DateTime.Now.ToOADate() * 24.0 * 3600000;"
        
        NATIVE_UTC_now = @
        "   RESULT = DateTime.UtcNow.ToOADate() * 24.0 * 3600000;"

        NATIVE_Year = @
        "   DateTime d = DateTime.FromOADate(X_D / 24.0 / 3600000);"
        "   RESULT = d.Year;"
        
        NATIVE_Month = @
        "   DateTime d = DateTime.FromOADate(X_D / 24.0 / 3600000);"
        "   RESULT = d.Month;"
         
        NATIVE_Day = @
        "   DateTime d = DateTime.FromOADate(X_D / 24.0 / 3600000);"
        "   RESULT = d.Day;"
         
        NATIVE_Week_day = @
        "   DateTime d = DateTime.FromOADate(X_D / 24.0 / 3600000);"
        "   RESULT = (byte)d.DayOfWeek;"
         
        NATIVE_Hour = @
        "   DateTime d = DateTime.FromOADate(X_D / 24.0 / 3600000);"
        "   RESULT = d.Hour;"
         
        NATIVE_Minute = @
        "   DateTime d = DateTime.FromOADate(X_D / 24.0 / 3600000);"
        "   RESULT = d.Minute;"
         
        NATIVE_Second = @
        "   DateTime d = DateTime.FromOADate(X_D / 24.0 / 3600000);"
        "   RESULT = d.Second;"
         
        NATIVE_Millisecond = @
        "   DateTime d = DateTime.FromOADate(X_D / 24.0 / 3600000);"
        "   RESULT = d.Millisecond;"
         
        NATIVE_Day_of_year = @
        "   DateTime d = DateTime.FromOADate(X_D / 24.0 / 3600000);"
        "   RESULT = d.DayOfYear;"
         
        NATIVE_Days_in_month = @
        "   DateTime d = DateTime.FromOADate(X_D / 24.0 / 3600000);"
        "   RESULT = DateTime.DaysInMonth(d.Year, d.Month);"
        
        NATIVE_Date_time_Str = @
        "   DateTime d = DateTime.FromOADate(X_D / 24.0 / 3600000);"
        "   RESULT = d.ToString();"
        .
         
    */

}

/*
END
*/
