public class DateAndTime extends NetObject
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/Microsoft.VisualBasic.DateAndTime
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: Microsoft.VisualBasic, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
|
static java.lang.String |
assemblyShortName
Assembly name: Microsoft.VisualBasic
|
static java.lang.String |
className
Qualified class name: Microsoft.VisualBasic.DateAndTime
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
DateAndTime() |
DateAndTime(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static DateAndTime |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into DateAndTime, a cast assert is made to check if types are compatible. |
static DateTime |
DateAdd(DateInterval Interval,
double Number,
DateTime DateValue) |
static DateTime |
DateAdd(java.lang.String Interval,
double Number,
NetObject DateValue) |
static long |
DateDiff(DateInterval Interval,
DateTime Date1,
DateTime Date2,
FirstDayOfWeek DayOfWeek,
FirstWeekOfYear WeekOfYear) |
static long |
DateDiff(java.lang.String Interval,
NetObject Date1,
NetObject Date2,
FirstDayOfWeek DayOfWeek,
FirstWeekOfYear WeekOfYear) |
static int |
DatePart(DateInterval Interval,
DateTime DateValue,
FirstDayOfWeek FirstDayOfWeekValue,
FirstWeekOfYear FirstWeekOfYearValue) |
static int |
DatePart(java.lang.String Interval,
NetObject DateValue,
FirstDayOfWeek DayOfWeek,
FirstWeekOfYear WeekOfYear) |
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 name
|
java.lang.String |
getJCOClassName()
Returns the reflected Class name
|
java.lang.Object |
getJCOInstance()
Returns the instantiated class
|
java.lang.String |
getJCOObjectName()
Returns the reflected Class name used to build the object
|
JCType |
getJCOType()
Returns the instantiated class Type
|
static 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) |
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public DateAndTime()
throws java.lang.Throwable
java.lang.Throwablepublic DateAndTime(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic static DateAndTime cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into DateAndTime, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedDateAndTime instancejava.lang.Throwable - in case of error during cast operationpublic 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
java.lang.ThrowableArgumentNullExceptionTypeLoadExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionTypeInitializationExceptionOutOfMemoryExceptionNotImplementedExceptionMissingManifestResourceExceptionObjectDisposedExceptionpublic 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
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionNotSupportedExceptionTypeInitializationExceptionCultureNotFoundExceptionNotImplementedExceptionMissingManifestResourceExceptionInvalidCastExceptionpublic 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
java.lang.ThrowableArgumentNullExceptionTypeLoadExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionTypeInitializationExceptionNotImplementedExceptionMissingManifestResourceExceptionObjectDisposedExceptionpublic 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
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionNotSupportedExceptionTypeInitializationExceptionCultureNotFoundExceptionNotImplementedExceptionMissingManifestResourceExceptionInvalidCastExceptionpublic 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
java.lang.ThrowableArgumentNullExceptionTypeLoadExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionTypeInitializationExceptionNotImplementedExceptionMissingManifestResourceExceptionObjectDisposedExceptionpublic 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
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionNotSupportedExceptionTypeInitializationExceptionCultureNotFoundExceptionNotImplementedExceptionMissingManifestResourceExceptionInvalidCastExceptionpublic 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
java.lang.ThrowableArgumentNullExceptionTypeLoadExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionTypeInitializationExceptionInvalidTimeZoneExceptionOutOfMemoryExceptionNotImplementedExceptionMissingManifestResourceExceptionObjectDisposedExceptionpublic 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
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionAbandonedMutexExceptionNotSupportedExceptionOverflowExceptionNotImplementedExceptionMissingManifestResourceExceptionInvalidCastExceptionpublic static int Day(DateTime DateValue) throws java.lang.Throwable, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, TypeInitializationException
public static java.lang.String getDateString()
throws java.lang.Throwable,
ArgumentOutOfRangeException,
ArgumentNullException,
ArgumentException,
InvalidTimeZoneException,
TypeInitializationException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
CultureNotFoundException,
IndexOutOfRangeException,
OverflowException,
FormatException,
OutOfMemoryException,
NullReferenceException
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentNullExceptionArgumentExceptionInvalidTimeZoneExceptionTypeInitializationExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionCultureNotFoundExceptionIndexOutOfRangeExceptionOverflowExceptionFormatExceptionOutOfMemoryExceptionNullReferenceExceptionpublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class NetObjectString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectJCType representing the CLR Type of the instantiated Classpublic static DateTime getNow() throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, InvalidTimeZoneException, OverflowException, NotSupportedException
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentNullExceptionArgumentExceptionInvalidTimeZoneExceptionOverflowExceptionNotSupportedExceptionpublic static DateTime getTimeOfDay() throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, InvalidTimeZoneException, OverflowException, NotSupportedException
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentNullExceptionArgumentExceptionInvalidTimeZoneExceptionOverflowExceptionNotSupportedExceptionpublic static double getTimer()
throws java.lang.Throwable,
ArgumentOutOfRangeException,
ArgumentNullException,
ArgumentException,
InvalidTimeZoneException,
OverflowException,
NotSupportedException
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentNullExceptionArgumentExceptionInvalidTimeZoneExceptionOverflowExceptionNotSupportedExceptionpublic static java.lang.String getTimeString()
throws java.lang.Throwable,
ArgumentOutOfRangeException,
ArgumentNullException,
ArgumentException,
InvalidTimeZoneException,
OverflowException,
NotSupportedException,
TypeInitializationException,
InvalidOperationException,
IndexOutOfRangeException,
FormatException,
CultureNotFoundException,
OutOfMemoryException,
NullReferenceException
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentNullExceptionArgumentExceptionInvalidTimeZoneExceptionOverflowExceptionNotSupportedExceptionTypeInitializationExceptionInvalidOperationExceptionIndexOutOfRangeExceptionFormatExceptionCultureNotFoundExceptionOutOfMemoryExceptionNullReferenceExceptionpublic static DateTime getToday() throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, InvalidTimeZoneException
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentNullExceptionArgumentExceptionInvalidTimeZoneExceptionpublic static int Hour(DateTime TimeValue) throws java.lang.Throwable, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, TypeInitializationException
public static int Minute(DateTime TimeValue) throws java.lang.Throwable, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, TypeInitializationException
public static int Month(DateTime DateValue) throws java.lang.Throwable, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, TypeInitializationException
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
java.lang.ThrowableNotSupportedExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionArgumentExceptionInvalidOperationExceptionArgumentNullExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionFormatExceptionTypeInitializationExceptionpublic static int Second(DateTime TimeValue) throws java.lang.Throwable, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, TypeInitializationException
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
java.lang.ThrowableArgumentNullExceptionTypeLoadExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionTypeInitializationExceptionFormatExceptionOverflowExceptionNotImplementedExceptionMissingManifestResourceExceptionObjectDisposedExceptionSecurityExceptionpublic void setJCOInstance(JCObject instance)
setJCOInstance in class NetObjectpublic static void setTimeOfDay(DateTime TimeOfDay) throws java.lang.Throwable, NotSupportedException, ArgumentOutOfRangeException, OutOfMemoryException, IndexOutOfRangeException, ArgumentNullException, ArgumentException, FormatException, CultureNotFoundException, InvalidOperationException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, SecurityException
java.lang.ThrowableNotSupportedExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionArgumentNullExceptionArgumentExceptionFormatExceptionCultureNotFoundExceptionInvalidOperationExceptionNotImplementedExceptionMissingManifestResourceExceptionObjectDisposedExceptionSecurityExceptionpublic 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
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionAbandonedMutexExceptionNotSupportedExceptionOverflowExceptionNotImplementedExceptionMissingManifestResourceExceptionInvalidCastExceptionSecurityExceptionpublic static void setToday(DateTime Today) throws java.lang.Throwable, NotSupportedException, ArgumentOutOfRangeException, OutOfMemoryException, IndexOutOfRangeException, ArgumentNullException, ArgumentException, FormatException, CultureNotFoundException, InvalidOperationException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, SecurityException
java.lang.ThrowableNotSupportedExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionArgumentNullExceptionArgumentExceptionFormatExceptionCultureNotFoundExceptionInvalidOperationExceptionNotImplementedExceptionMissingManifestResourceExceptionObjectDisposedExceptionSecurityExceptionpublic static DateTime TimeSerial(int Hour, int Minute, int Second) throws java.lang.Throwable, ArgumentOutOfRangeException
java.lang.ThrowableArgumentOutOfRangeExceptionpublic 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
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionAbandonedMutexExceptionNotSupportedExceptionOverflowExceptionNotImplementedExceptionMissingManifestResourceExceptionInvalidCastExceptionpublic 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
java.lang.ThrowableArgumentNullExceptionTypeLoadExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionTypeInitializationExceptionFormatExceptionNotImplementedExceptionMissingManifestResourceExceptionObjectDisposedExceptionpublic 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
java.lang.ThrowableNotSupportedExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionArgumentExceptionInvalidOperationExceptionArgumentNullExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionFormatExceptionTypeInitializationExceptionpublic static int Year(DateTime DateValue) throws java.lang.Throwable, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, TypeInitializationException