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, Version=10.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.String
assemblyFullName
Fully assembly qualified name: Microsoft.VisualBasic, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.String
assemblyShortName
Assembly name: Microsoft.VisualBasicstatic java.lang.String
className
Qualified class name: Microsoft.VisualBasic.DateAndTimestatic JCType
classType
The 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 DateAndTime
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoDateAndTime
, a cast assert is made to check if types are compatible.static DateTime
DateAdd(java.lang.String Interval, double Number, NetObject DateValue)
static DateTime
DateAdd(DateInterval Interval, double Number, DateTime DateValue)
static long
DateDiff(java.lang.String Interval, NetObject Date1, NetObject Date2, FirstDayOfWeek DayOfWeek, FirstWeekOfYear WeekOfYear)
static long
DateDiff(DateInterval Interval, DateTime Date1, DateTime Date2, FirstDayOfWeek DayOfWeek, FirstWeekOfYear WeekOfYear)
static int
DatePart(java.lang.String Interval, NetObject DateValue, FirstDayOfWeek DayOfWeek, FirstWeekOfYear WeekOfYear)
static int
DatePart(DateInterval Interval, DateTime DateValue, FirstDayOfWeek FirstDayOfWeekValue, FirstWeekOfYear FirstWeekOfYearValue)
static DateTime
DateSerial(int Year, int Month, int Day)
static DateTime
DateValue(java.lang.String StringDate)
static int
Day(DateTime DateValue)
static java.lang.String
getDateString()
java.lang.String
getJCOAssemblyName()
Returns the reflected Assembly namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class Typestatic DateTime
getNow()
static DateTime
getTimeOfDay()
static double
getTimer()
static java.lang.String
getTimeString()
static DateTime
getToday()
static int
Hour(DateTime TimeValue)
static int
Minute(DateTime TimeValue)
static int
Month(DateTime DateValue)
static java.lang.String
MonthName(int Month, boolean Abbreviate)
static int
Second(DateTime TimeValue)
static void
setDateString(java.lang.String DateString)
void
setJCOInstance(JCObject instance)
static void
setTimeOfDay(DateTime TimeOfDay)
static void
setTimeString(java.lang.String TimeString)
static void
setToday(DateTime Today)
static DateTime
TimeSerial(int Hour, int Minute, int Second)
static DateTime
TimeValue(java.lang.String StringTime)
static int
Weekday(DateTime DateValue, FirstDayOfWeek DayOfWeek)
static java.lang.String
WeekdayName(int Weekday, boolean Abbreviate, FirstDayOfWeek FirstDayOfWeekValue)
static int
Year(DateTime DateValue)
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: Microsoft.VisualBasic, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: Microsoft.VisualBasic- 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:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classNetObject
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classNetObject
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classNetObject
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static DateAndTime cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoDateAndTime
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
DateAndTime
instance- 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, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, TypeInitializationException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException
- Throws:
java.lang.Throwable
ArgumentNullException
TypeLoadException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotSupportedException
CultureNotFoundException
ArgumentOutOfRangeException
TypeInitializationException
NotImplementedException
MissingManifestResourceException
ObjectDisposedException
-
DatePart
public static int DatePart(java.lang.String Interval, NetObject DateValue, FirstDayOfWeek DayOfWeek, FirstWeekOfYear WeekOfYear) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException, ObjectDisposedException, NotSupportedException, TypeInitializationException, CultureNotFoundException, NotImplementedException, MissingManifestResourceException, InvalidCastException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
ArgumentOutOfRangeException
ObjectDisposedException
NotSupportedException
TypeInitializationException
CultureNotFoundException
NotImplementedException
MissingManifestResourceException
InvalidCastException
-
Day
public static int Day(DateTime DateValue) throws java.lang.Throwable, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, TypeInitializationException
-
Hour
public static int Hour(DateTime TimeValue) throws java.lang.Throwable, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, TypeInitializationException
-
Minute
public static int Minute(DateTime TimeValue) throws java.lang.Throwable, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, TypeInitializationException
-
Month
public static int Month(DateTime DateValue) throws java.lang.Throwable, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, TypeInitializationException
-
Second
public static int Second(DateTime TimeValue) throws java.lang.Throwable, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, TypeInitializationException
-
Weekday
public static int Weekday(DateTime DateValue, FirstDayOfWeek DayOfWeek) throws java.lang.Throwable, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, TypeInitializationException, FormatException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException
- Throws:
java.lang.Throwable
ArgumentNullException
TypeLoadException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotSupportedException
CultureNotFoundException
ArgumentOutOfRangeException
TypeInitializationException
FormatException
NotImplementedException
MissingManifestResourceException
ObjectDisposedException
-
Year
public static int Year(DateTime DateValue) throws java.lang.Throwable, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, TypeInitializationException
-
DateDiff
public static long DateDiff(DateInterval Interval, DateTime Date1, DateTime Date2, FirstDayOfWeek DayOfWeek, FirstWeekOfYear WeekOfYear) throws java.lang.Throwable, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, TypeInitializationException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException
- Throws:
java.lang.Throwable
ArgumentNullException
TypeLoadException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotSupportedException
CultureNotFoundException
ArgumentOutOfRangeException
TypeInitializationException
NotImplementedException
MissingManifestResourceException
ObjectDisposedException
-
DateDiff
public static long DateDiff(java.lang.String Interval, NetObject Date1, NetObject Date2, FirstDayOfWeek DayOfWeek, FirstWeekOfYear WeekOfYear) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException, ObjectDisposedException, NotSupportedException, TypeInitializationException, CultureNotFoundException, NotImplementedException, MissingManifestResourceException, InvalidCastException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
ArgumentOutOfRangeException
ObjectDisposedException
NotSupportedException
TypeInitializationException
CultureNotFoundException
NotImplementedException
MissingManifestResourceException
InvalidCastException
-
DateAdd
public static DateTime DateAdd(DateInterval Interval, double Number, DateTime DateValue) throws java.lang.Throwable, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, TypeInitializationException, OutOfMemoryException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException
- Throws:
java.lang.Throwable
ArgumentNullException
TypeLoadException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotSupportedException
CultureNotFoundException
ArgumentOutOfRangeException
TypeInitializationException
OutOfMemoryException
NotImplementedException
MissingManifestResourceException
ObjectDisposedException
-
DateAdd
public static DateTime DateAdd(java.lang.String Interval, double Number, NetObject DateValue) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException, ObjectDisposedException, NotSupportedException, TypeInitializationException, CultureNotFoundException, NotImplementedException, MissingManifestResourceException, InvalidCastException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
ArgumentOutOfRangeException
ObjectDisposedException
NotSupportedException
TypeInitializationException
CultureNotFoundException
NotImplementedException
MissingManifestResourceException
InvalidCastException
-
DateSerial
public static DateTime DateSerial(int Year, int Month, int Day) throws java.lang.Throwable, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, TypeInitializationException, InvalidTimeZoneException, OutOfMemoryException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException
- Throws:
java.lang.Throwable
ArgumentNullException
TypeLoadException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotSupportedException
CultureNotFoundException
ArgumentOutOfRangeException
TypeInitializationException
InvalidTimeZoneException
OutOfMemoryException
NotImplementedException
MissingManifestResourceException
ObjectDisposedException
-
DateValue
public static DateTime DateValue(java.lang.String StringDate) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, ArgumentOutOfRangeException, ObjectDisposedException, AbandonedMutexException, NotSupportedException, OverflowException, NotImplementedException, MissingManifestResourceException, InvalidCastException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
CultureNotFoundException
ArgumentOutOfRangeException
ObjectDisposedException
AbandonedMutexException
NotSupportedException
OverflowException
NotImplementedException
MissingManifestResourceException
InvalidCastException
-
TimeSerial
public static DateTime TimeSerial(int Hour, int Minute, int Second) throws java.lang.Throwable, ArgumentOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
-
TimeValue
public static DateTime TimeValue(java.lang.String StringTime) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, ArgumentOutOfRangeException, ObjectDisposedException, AbandonedMutexException, NotSupportedException, OverflowException, NotImplementedException, MissingManifestResourceException, InvalidCastException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
CultureNotFoundException
ArgumentOutOfRangeException
ObjectDisposedException
AbandonedMutexException
NotSupportedException
OverflowException
NotImplementedException
MissingManifestResourceException
InvalidCastException
-
MonthName
public static java.lang.String MonthName(int Month, boolean Abbreviate) throws java.lang.Throwable, NotSupportedException, ArgumentOutOfRangeException, OutOfMemoryException, IndexOutOfRangeException, ArgumentException, InvalidOperationException, ArgumentNullException, MissingMethodException, TargetInvocationException, NotImplementedException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, FormatException, TypeInitializationException
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentOutOfRangeException
OutOfMemoryException
IndexOutOfRangeException
ArgumentException
InvalidOperationException
ArgumentNullException
MissingMethodException
TargetInvocationException
NotImplementedException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
FormatException
TypeInitializationException
-
WeekdayName
public static java.lang.String WeekdayName(int Weekday, boolean Abbreviate, FirstDayOfWeek FirstDayOfWeekValue) throws java.lang.Throwable, NotSupportedException, ArgumentOutOfRangeException, OutOfMemoryException, IndexOutOfRangeException, ArgumentException, InvalidOperationException, ArgumentNullException, MissingMethodException, TargetInvocationException, NotImplementedException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, FormatException, TypeInitializationException
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentOutOfRangeException
OutOfMemoryException
IndexOutOfRangeException
ArgumentException
InvalidOperationException
ArgumentNullException
MissingMethodException
TargetInvocationException
NotImplementedException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
FormatException
TypeInitializationException
-
getTimer
public static double getTimer() throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, InvalidTimeZoneException, OverflowException, NotSupportedException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentNullException
ArgumentException
InvalidTimeZoneException
OverflowException
NotSupportedException
-
getNow
public static DateTime getNow() throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, InvalidTimeZoneException, OverflowException, NotSupportedException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentNullException
ArgumentException
InvalidTimeZoneException
OverflowException
NotSupportedException
-
getTimeOfDay
public static DateTime getTimeOfDay() throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, InvalidTimeZoneException, OverflowException, NotSupportedException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentNullException
ArgumentException
InvalidTimeZoneException
OverflowException
NotSupportedException
-
setTimeOfDay
public static void setTimeOfDay(DateTime TimeOfDay) throws java.lang.Throwable, NotSupportedException, ArgumentOutOfRangeException, OutOfMemoryException, IndexOutOfRangeException, ArgumentNullException, ArgumentException, FormatException, CultureNotFoundException, InvalidOperationException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, SecurityException
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentOutOfRangeException
OutOfMemoryException
IndexOutOfRangeException
ArgumentNullException
ArgumentException
FormatException
CultureNotFoundException
InvalidOperationException
NotImplementedException
MissingManifestResourceException
ObjectDisposedException
SecurityException
-
getToday
public static DateTime getToday() throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, InvalidTimeZoneException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentNullException
ArgumentException
InvalidTimeZoneException
-
setToday
public static void setToday(DateTime Today) throws java.lang.Throwable, NotSupportedException, ArgumentOutOfRangeException, OutOfMemoryException, IndexOutOfRangeException, ArgumentNullException, ArgumentException, FormatException, CultureNotFoundException, InvalidOperationException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, SecurityException
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentOutOfRangeException
OutOfMemoryException
IndexOutOfRangeException
ArgumentNullException
ArgumentException
FormatException
CultureNotFoundException
InvalidOperationException
NotImplementedException
MissingManifestResourceException
ObjectDisposedException
SecurityException
-
getDateString
public static java.lang.String getDateString() throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, InvalidTimeZoneException, TypeInitializationException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, IndexOutOfRangeException, OverflowException, FormatException, OutOfMemoryException, NullReferenceException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentNullException
ArgumentException
InvalidTimeZoneException
TypeInitializationException
InvalidOperationException
MissingMethodException
TargetInvocationException
CultureNotFoundException
IndexOutOfRangeException
OverflowException
FormatException
OutOfMemoryException
NullReferenceException
-
setDateString
public static void setDateString(java.lang.String DateString) throws java.lang.Throwable, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, TypeInitializationException, FormatException, OverflowException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, SecurityException
- Throws:
java.lang.Throwable
ArgumentNullException
TypeLoadException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotSupportedException
CultureNotFoundException
ArgumentOutOfRangeException
TypeInitializationException
FormatException
OverflowException
NotImplementedException
MissingManifestResourceException
ObjectDisposedException
SecurityException
-
getTimeString
public static java.lang.String getTimeString() throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, InvalidTimeZoneException, OverflowException, NotSupportedException, TypeInitializationException, InvalidOperationException, IndexOutOfRangeException, FormatException, CultureNotFoundException, OutOfMemoryException, NullReferenceException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentNullException
ArgumentException
InvalidTimeZoneException
OverflowException
NotSupportedException
TypeInitializationException
InvalidOperationException
IndexOutOfRangeException
FormatException
CultureNotFoundException
OutOfMemoryException
NullReferenceException
-
setTimeString
public static void setTimeString(java.lang.String TimeString) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, ArgumentOutOfRangeException, ObjectDisposedException, AbandonedMutexException, NotSupportedException, OverflowException, NotImplementedException, MissingManifestResourceException, InvalidCastException, SecurityException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
CultureNotFoundException
ArgumentOutOfRangeException
ObjectDisposedException
AbandonedMutexException
NotSupportedException
OverflowException
NotImplementedException
MissingManifestResourceException
InvalidCastException
SecurityException
-
-