Package microsoft.visualbasic
Class DateAndTime
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- microsoft.visualbasic.DateAndTime
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class DateAndTime extends NetObject
The base .NET class managing Microsoft.VisualBasic.DateAndTime, Microsoft.VisualBasic.Core, Version=13.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/Microsoft.VisualBasic.DateAndTime
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringassemblyFullNameFully assembly qualified name: Microsoft.VisualBasic.Core, Version=13.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.StringassemblyShortNameAssembly name: Microsoft.VisualBasic.Corestatic java.lang.StringclassNameQualified class name: Microsoft.VisualBasic.DateAndTimestatic JCTypeclassTypeThe type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description DateAndTime()DateAndTime(java.lang.Object instance)Internal constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DateAndTimecast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoDateAndTime, a cast assert is made to check if types are compatible.static DateTimeDateAdd(java.lang.String Interval, double Number, NetObject DateValue)static DateTimeDateAdd(DateInterval Interval, double Number, DateTime DateValue)static longDateDiff(java.lang.String Interval, NetObject Date1, NetObject Date2, FirstDayOfWeek DayOfWeek, FirstWeekOfYear WeekOfYear)static longDateDiff(DateInterval Interval, DateTime Date1, DateTime Date2, FirstDayOfWeek DayOfWeek, FirstWeekOfYear WeekOfYear)static intDatePart(java.lang.String Interval, NetObject DateValue, FirstDayOfWeek DayOfWeek, FirstWeekOfYear WeekOfYear)static intDatePart(DateInterval Interval, DateTime DateValue, FirstDayOfWeek FirstDayOfWeekValue, FirstWeekOfYear FirstWeekOfYearValue)static DateTimeDateSerial(int Year, int Month, int Day)static DateTimeDateValue(java.lang.String StringDate)static intDay(DateTime DateValue)static java.lang.StringgetDateString()java.lang.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectJCTypegetJCOType()Returns the instantiated class Typestatic DateTimegetNow()static DateTimegetTimeOfDay()static doublegetTimer()static java.lang.StringgetTimeString()static DateTimegetToday()static intHour(DateTime TimeValue)static intMinute(DateTime TimeValue)static intMonth(DateTime DateValue)static java.lang.StringMonthName(int Month, boolean Abbreviate)static intSecond(DateTime TimeValue)static voidsetDateString(java.lang.String DateString)voidsetJCOInstance(JCObject instance)static voidsetTimeOfDay(DateTime TimeOfDay)static voidsetTimeString(java.lang.String TimeString)static voidsetToday(DateTime Today)static DateTimeTimeSerial(int Hour, int Minute, int Second)static DateTimeTimeValue(java.lang.String StringTime)static intWeekday(DateTime DateValue, FirstDayOfWeek DayOfWeek)static java.lang.StringWeekdayName(int Weekday, boolean Abbreviate, FirstDayOfWeek FirstDayOfWeekValue)static intYear(DateTime DateValue)
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: Microsoft.VisualBasic.Core, Version=13.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: Microsoft.VisualBasic.Core- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: Microsoft.VisualBasic.DateAndTime- See Also:
- Constant Field Values
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classNetObject- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classNetObject- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classNetObject- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classNetObject- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classNetObject- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static DateAndTime cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoDateAndTime, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
DateAndTimeinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
DatePart
public static int DatePart(DateInterval Interval, DateTime DateValue, FirstDayOfWeek FirstDayOfWeekValue, FirstWeekOfYear FirstWeekOfYearValue) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, CultureNotFoundException, IndexOutOfRangeException, TypeInitializationException
-
DatePart
public static int DatePart(java.lang.String Interval, NetObject DateValue, FirstDayOfWeek DayOfWeek, FirstWeekOfYear WeekOfYear) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentException, CultureNotFoundException, IndexOutOfRangeException, TypeInitializationException, InvalidOperationException, ArgumentOutOfRangeException, InvalidCastException, OutOfMemoryException, NotSupportedException, ArrayTypeMismatchException
-
Day
public static int Day(DateTime DateValue) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, CultureNotFoundException, IndexOutOfRangeException, TypeInitializationException
-
Hour
public static int Hour(DateTime TimeValue) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, CultureNotFoundException, IndexOutOfRangeException, TypeInitializationException
-
Minute
public static int Minute(DateTime TimeValue) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, CultureNotFoundException, IndexOutOfRangeException, TypeInitializationException
-
Month
public static int Month(DateTime DateValue) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, CultureNotFoundException, IndexOutOfRangeException, TypeInitializationException
-
Second
public static int Second(DateTime TimeValue) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, CultureNotFoundException, IndexOutOfRangeException, TypeInitializationException
-
Weekday
public static int Weekday(DateTime DateValue, FirstDayOfWeek DayOfWeek) throws java.lang.Throwable, ArgumentNullException, CultureNotFoundException, PlatformNotSupportedException, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, RankException, IndexOutOfRangeException, ArrayTypeMismatchException, TypeInitializationException, ObjectDisposedException
-
Year
public static int Year(DateTime DateValue) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, CultureNotFoundException, IndexOutOfRangeException, TypeInitializationException
-
DateDiff
public static long DateDiff(DateInterval Interval, DateTime Date1, DateTime Date2, FirstDayOfWeek DayOfWeek, FirstWeekOfYear WeekOfYear) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, CultureNotFoundException, IndexOutOfRangeException, TypeInitializationException, FormatException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionCultureNotFoundExceptionIndexOutOfRangeExceptionTypeInitializationExceptionFormatException
-
DateDiff
public static long DateDiff(java.lang.String Interval, NetObject Date1, NetObject Date2, FirstDayOfWeek DayOfWeek, FirstWeekOfYear WeekOfYear) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentException, CultureNotFoundException, IndexOutOfRangeException, TypeInitializationException, InvalidOperationException, ArgumentOutOfRangeException, InvalidCastException, OutOfMemoryException, NotSupportedException, ArrayTypeMismatchException
-
DateAdd
public static DateTime DateAdd(DateInterval Interval, double Number, DateTime DateValue) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, CultureNotFoundException, IndexOutOfRangeException, TypeInitializationException, OutOfMemoryException, ExternalException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionCultureNotFoundExceptionIndexOutOfRangeExceptionTypeInitializationExceptionOutOfMemoryExceptionExternalException
-
DateAdd
public static DateTime DateAdd(java.lang.String Interval, double Number, NetObject DateValue) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentException, CultureNotFoundException, IndexOutOfRangeException, TypeInitializationException, InvalidOperationException, ArgumentOutOfRangeException, InvalidCastException, OutOfMemoryException, NotSupportedException, ArrayTypeMismatchException
-
DateSerial
public static DateTime DateSerial(int Year, int Month, int Day) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, CultureNotFoundException, IndexOutOfRangeException, TypeInitializationException, InvalidTimeZoneException, OverflowException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionCultureNotFoundExceptionIndexOutOfRangeExceptionTypeInitializationExceptionInvalidTimeZoneExceptionOverflowException
-
DateValue
public static DateTime DateValue(java.lang.String StringDate) throws java.lang.Throwable, CultureNotFoundException, PlatformNotSupportedException, ArgumentException, IndexOutOfRangeException, OverflowException, TypeInitializationException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, ObjectDisposedException, InvalidCastException
-
TimeSerial
public static DateTime TimeSerial(int Hour, int Minute, int Second) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
TimeValue
public static DateTime TimeValue(java.lang.String StringTime) throws java.lang.Throwable, CultureNotFoundException, PlatformNotSupportedException, ArgumentException, IndexOutOfRangeException, OverflowException, TypeInitializationException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, ObjectDisposedException, InvalidCastException
-
MonthName
public static java.lang.String MonthName(int Month, boolean Abbreviate) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, OutOfMemoryException, ExternalException, ArrayTypeMismatchException, RankException, IndexOutOfRangeException, TypeInitializationException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionObjectDisposedExceptionOutOfMemoryExceptionExternalExceptionArrayTypeMismatchExceptionRankExceptionIndexOutOfRangeExceptionTypeInitializationException
-
WeekdayName
public static java.lang.String WeekdayName(int Weekday, boolean Abbreviate, FirstDayOfWeek FirstDayOfWeekValue) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, OutOfMemoryException, ExternalException, ArrayTypeMismatchException, RankException, IndexOutOfRangeException, TypeInitializationException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionObjectDisposedExceptionOutOfMemoryExceptionExternalExceptionArrayTypeMismatchExceptionRankExceptionIndexOutOfRangeExceptionTypeInitializationException
-
getTimer
public static double getTimer() throws java.lang.Throwable, ArgumentOutOfRangeException, NotSupportedException, InvalidOperationException, ArgumentException, PlatformNotSupportedException, IndexOutOfRangeException, InvalidTimeZoneException, SecurityException, UnauthorizedAccessException, IOException, OverflowException
-
getNow
public static DateTime getNow() throws java.lang.Throwable, ArgumentOutOfRangeException, NotSupportedException, InvalidOperationException, ArgumentException, PlatformNotSupportedException, IndexOutOfRangeException, InvalidTimeZoneException, SecurityException, UnauthorizedAccessException, IOException, OverflowException
-
getTimeOfDay
public static DateTime getTimeOfDay() throws java.lang.Throwable, ArgumentOutOfRangeException, NotSupportedException, InvalidOperationException, ArgumentException, PlatformNotSupportedException, IndexOutOfRangeException, InvalidTimeZoneException, SecurityException, UnauthorizedAccessException, IOException, OverflowException
-
setTimeOfDay
public static void setTimeOfDay(DateTime TimeOfDay) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, OutOfMemoryException, ExternalException, SecurityException
-
getToday
public static DateTime getToday() throws java.lang.Throwable, ArgumentOutOfRangeException, NotSupportedException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentException, InvalidTimeZoneException, OverflowException, SecurityException
-
setToday
public static void setToday(DateTime Today) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, OutOfMemoryException, ExternalException, SecurityException
-
getDateString
public static java.lang.String getDateString() throws java.lang.Throwable, ArgumentOutOfRangeException, NotSupportedException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentException, InvalidTimeZoneException, OverflowException, SecurityException, OutOfMemoryException, InvalidOperationException, FormatException, CultureNotFoundException, ArgumentNullException- Throws:
java.lang.ThrowableArgumentOutOfRangeExceptionNotSupportedExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionArgumentExceptionInvalidTimeZoneExceptionOverflowExceptionSecurityExceptionOutOfMemoryExceptionInvalidOperationExceptionFormatExceptionCultureNotFoundExceptionArgumentNullException
-
setDateString
public static void setDateString(java.lang.String DateString) throws java.lang.Throwable, ArgumentNullException, CultureNotFoundException, PlatformNotSupportedException, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, OverflowException, InvalidOperationException, FormatException, ArrayTypeMismatchException, ObjectDisposedException, SecurityException- Throws:
java.lang.ThrowableArgumentNullExceptionCultureNotFoundExceptionPlatformNotSupportedExceptionArgumentExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionOverflowExceptionInvalidOperationExceptionFormatExceptionArrayTypeMismatchExceptionObjectDisposedExceptionSecurityException
-
getTimeString
public static java.lang.String getTimeString() throws java.lang.Throwable, ArgumentOutOfRangeException, NotSupportedException, InvalidOperationException, ArgumentException, PlatformNotSupportedException, IndexOutOfRangeException, InvalidTimeZoneException, SecurityException, UnauthorizedAccessException, IOException, OverflowException, FormatException, ArgumentNullException- Throws:
java.lang.ThrowableArgumentOutOfRangeExceptionNotSupportedExceptionInvalidOperationExceptionArgumentExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionInvalidTimeZoneExceptionSecurityExceptionUnauthorizedAccessExceptionIOExceptionOverflowExceptionFormatExceptionArgumentNullException
-
setTimeString
public static void setTimeString(java.lang.String TimeString) throws java.lang.Throwable, CultureNotFoundException, PlatformNotSupportedException, ArgumentException, IndexOutOfRangeException, OverflowException, TypeInitializationException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, ObjectDisposedException, InvalidCastException, SecurityException- Throws:
java.lang.ThrowableCultureNotFoundExceptionPlatformNotSupportedExceptionArgumentExceptionIndexOutOfRangeExceptionOverflowExceptionTypeInitializationExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionObjectDisposedExceptionInvalidCastExceptionSecurityException
-
-