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.String
assemblyFullName
Fully assembly qualified name: Microsoft.VisualBasic.Core, Version=13.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.String
assemblyShortName
Assembly name: Microsoft.VisualBasic.Corestatic 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.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: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, 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.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
CultureNotFoundException
IndexOutOfRangeException
TypeInitializationException
FormatException
-
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.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
CultureNotFoundException
IndexOutOfRangeException
TypeInitializationException
OutOfMemoryException
ExternalException
-
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.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
CultureNotFoundException
IndexOutOfRangeException
TypeInitializationException
InvalidTimeZoneException
OverflowException
-
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.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
CultureNotFoundException
ObjectDisposedException
OutOfMemoryException
ExternalException
ArrayTypeMismatchException
RankException
IndexOutOfRangeException
TypeInitializationException
-
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.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
CultureNotFoundException
ObjectDisposedException
OutOfMemoryException
ExternalException
ArrayTypeMismatchException
RankException
IndexOutOfRangeException
TypeInitializationException
-
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.Throwable
ArgumentOutOfRangeException
NotSupportedException
IndexOutOfRangeException
PlatformNotSupportedException
ArgumentException
InvalidTimeZoneException
OverflowException
SecurityException
OutOfMemoryException
InvalidOperationException
FormatException
CultureNotFoundException
ArgumentNullException
-
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.Throwable
ArgumentNullException
CultureNotFoundException
PlatformNotSupportedException
ArgumentException
ArgumentOutOfRangeException
IndexOutOfRangeException
OverflowException
InvalidOperationException
FormatException
ArrayTypeMismatchException
ObjectDisposedException
SecurityException
-
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.Throwable
ArgumentOutOfRangeException
NotSupportedException
InvalidOperationException
ArgumentException
PlatformNotSupportedException
IndexOutOfRangeException
InvalidTimeZoneException
SecurityException
UnauthorizedAccessException
IOException
OverflowException
FormatException
ArgumentNullException
-
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.Throwable
CultureNotFoundException
PlatformNotSupportedException
ArgumentException
IndexOutOfRangeException
OverflowException
TypeInitializationException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentNullException
ObjectDisposedException
InvalidCastException
SecurityException
-
-