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=11.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
- Version:
- 1.14.3.0
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static String
assemblyFullName
Fully assembly qualified name: Microsoft.VisualBasic.Core, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic String
assemblyShortName
Assembly name: Microsoft.VisualBasic.Corestatic String
className
Qualified class name: Microsoft.VisualBasic.DateAndTimestatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description DateAndTime()
DateAndTime(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(String Interval, double Number, NetObject DateValue)
static DateTime
DateAdd(DateInterval Interval, double Number, DateTime DateValue)
static long
DateDiff(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(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(String StringDate)
static int
Day(DateTime DateValue)
static String
getDateString()
String
getJCOAssemblyName()
Returns the reflected Assembly nameString
getJCOClassName()
Returns the reflected Class nameObject
getJCOInstance()
Returns the instantiated classString
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 String
getTimeString()
static DateTime
getToday()
static int
Hour(DateTime TimeValue)
static int
Minute(DateTime TimeValue)
static int
Month(DateTime DateValue)
static String
MonthName(int Month, boolean Abbreviate)
static int
Second(DateTime TimeValue)
static void
setDateString(String DateString)
void
setJCOInstance(JCObject instance)
static void
setTimeOfDay(DateTime TimeOfDay)
static void
setTimeString(String TimeString)
static void
setToday(DateTime Today)
static DateTime
TimeSerial(int Hour, int Minute, int Second)
static DateTime
TimeValue(String StringTime)
static int
Weekday(DateTime DateValue, FirstDayOfWeek DayOfWeek)
static String
WeekdayName(int Weekday, boolean Abbreviate, FirstDayOfWeek FirstDayOfWeekValue)
static int
Year(DateTime DateValue)
-
Methods inherited from class org.mases.jcobridge.netreflection.NetObject
Equals, Equals, GetHashCode, GetType, hashCode, toObjectFromArray, toObjectFromArray, toString, ToString, translateException
-
-
-
-
Field Detail
-
assemblyFullName
public static final String assemblyFullName
Fully assembly qualified name: Microsoft.VisualBasic.Core, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a- See Also:
- Constant Field Values
-
assemblyShortName
public static final String assemblyShortName
Assembly name: Microsoft.VisualBasic.Core- See Also:
- Constant Field Values
-
className
public static final String className
Qualified class name: Microsoft.VisualBasic.DateAndTime- See Also:
- Constant Field Values
-
-
Method Detail
-
getJCOAssemblyName
public 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 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 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 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 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:
Throwable
- in case of error during cast operation
-
DatePart
public static int DatePart(DateInterval Interval, DateTime DateValue, FirstDayOfWeek FirstDayOfWeekValue, FirstWeekOfYear FirstWeekOfYearValue) throws Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, CultureNotFoundException, FormatException, TypeInitializationException, OutOfMemoryException, ExternalException
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
IndexOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ArgumentNullException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
CultureNotFoundException
FormatException
TypeInitializationException
OutOfMemoryException
ExternalException
-
DatePart
public static int DatePart(String Interval, NetObject DateValue, FirstDayOfWeek DayOfWeek, FirstWeekOfYear WeekOfYear) throws Throwable, PlatformNotSupportedException, ArgumentException, ArgumentNullException, CultureNotFoundException, IndexOutOfRangeException, ArgumentOutOfRangeException, TypeInitializationException, InvalidOperationException, InvalidCastException, OutOfMemoryException, NotSupportedException
-
Day
public static int Day(DateTime DateValue) throws Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, CultureNotFoundException, FormatException, TypeInitializationException
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
IndexOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ArgumentNullException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
CultureNotFoundException
FormatException
TypeInitializationException
-
Hour
public static int Hour(DateTime TimeValue) throws Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, CultureNotFoundException, FormatException, TypeInitializationException
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
IndexOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ArgumentNullException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
CultureNotFoundException
FormatException
TypeInitializationException
-
Minute
public static int Minute(DateTime TimeValue) throws Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, CultureNotFoundException, FormatException, TypeInitializationException
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
IndexOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ArgumentNullException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
CultureNotFoundException
FormatException
TypeInitializationException
-
Month
public static int Month(DateTime DateValue) throws Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, CultureNotFoundException, FormatException, TypeInitializationException
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
IndexOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ArgumentNullException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
CultureNotFoundException
FormatException
TypeInitializationException
-
Second
public static int Second(DateTime TimeValue) throws Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, CultureNotFoundException, FormatException, TypeInitializationException
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
IndexOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ArgumentNullException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
CultureNotFoundException
FormatException
TypeInitializationException
-
Weekday
public static int Weekday(DateTime DateValue, FirstDayOfWeek DayOfWeek) throws Throwable, ArgumentNullException, CultureNotFoundException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArgumentException, RankException, IndexOutOfRangeException, ArrayTypeMismatchException, TypeInitializationException, ObjectDisposedException, OutOfMemoryException, ExternalException, NotSupportedException
- Throws:
Throwable
ArgumentNullException
CultureNotFoundException
PlatformNotSupportedException
ArgumentOutOfRangeException
InvalidOperationException
ArgumentException
RankException
IndexOutOfRangeException
ArrayTypeMismatchException
TypeInitializationException
ObjectDisposedException
OutOfMemoryException
ExternalException
NotSupportedException
-
Year
public static int Year(DateTime DateValue) throws Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, CultureNotFoundException, FormatException, TypeInitializationException
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
IndexOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ArgumentNullException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
CultureNotFoundException
FormatException
TypeInitializationException
-
DateDiff
public static long DateDiff(DateInterval Interval, DateTime Date1, DateTime Date2, FirstDayOfWeek DayOfWeek, FirstWeekOfYear WeekOfYear) throws Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, CultureNotFoundException, FormatException, TypeInitializationException
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
IndexOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ArgumentNullException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
CultureNotFoundException
FormatException
TypeInitializationException
-
DateDiff
public static long DateDiff(String Interval, NetObject Date1, NetObject Date2, FirstDayOfWeek DayOfWeek, FirstWeekOfYear WeekOfYear) throws Throwable, PlatformNotSupportedException, ArgumentException, ArgumentNullException, CultureNotFoundException, IndexOutOfRangeException, ArgumentOutOfRangeException, TypeInitializationException, InvalidOperationException, InvalidCastException, OutOfMemoryException, NotSupportedException, FormatException
-
DateAdd
public static DateTime DateAdd(DateInterval Interval, double Number, DateTime DateValue) throws Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, CultureNotFoundException, FormatException, TypeInitializationException, OutOfMemoryException, ExternalException
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
IndexOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ArgumentNullException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
CultureNotFoundException
FormatException
TypeInitializationException
OutOfMemoryException
ExternalException
-
DateAdd
public static DateTime DateAdd(String Interval, double Number, NetObject DateValue) throws Throwable, PlatformNotSupportedException, ArgumentException, ArgumentNullException, CultureNotFoundException, IndexOutOfRangeException, ArgumentOutOfRangeException, TypeInitializationException, InvalidOperationException, InvalidCastException, OutOfMemoryException, NotSupportedException
-
DateSerial
public static DateTime DateSerial(int Year, int Month, int Day) throws Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, CultureNotFoundException, FormatException, TypeInitializationException, InvalidTimeZoneException, OverflowException
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
IndexOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ArgumentNullException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
CultureNotFoundException
FormatException
TypeInitializationException
InvalidTimeZoneException
OverflowException
-
DateValue
public static DateTime DateValue(String StringDate) throws Throwable, ArgumentNullException, CultureNotFoundException, PlatformNotSupportedException, ArgumentException, IndexOutOfRangeException, OverflowException, TypeInitializationException, ArgumentOutOfRangeException, InvalidOperationException, ObjectDisposedException, InvalidCastException
-
TimeSerial
public static DateTime TimeSerial(int Hour, int Minute, int Second) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException
-
TimeValue
public static DateTime TimeValue(String StringTime) throws Throwable, ArgumentNullException, CultureNotFoundException, PlatformNotSupportedException, ArgumentException, IndexOutOfRangeException, OverflowException, TypeInitializationException, ArgumentOutOfRangeException, InvalidOperationException, ObjectDisposedException, InvalidCastException
-
MonthName
public static String MonthName(int Month, boolean Abbreviate) throws Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, CultureNotFoundException, PlatformNotSupportedException, OutOfMemoryException, ExternalException, InvalidOperationException, IndexOutOfRangeException, ArrayTypeMismatchException, RankException, TypeInitializationException
- Throws:
Throwable
NotSupportedException
ArgumentException
ArgumentNullException
ArgumentOutOfRangeException
CultureNotFoundException
PlatformNotSupportedException
OutOfMemoryException
ExternalException
InvalidOperationException
IndexOutOfRangeException
ArrayTypeMismatchException
RankException
TypeInitializationException
-
WeekdayName
public static String WeekdayName(int Weekday, boolean Abbreviate, FirstDayOfWeek FirstDayOfWeekValue) throws Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, CultureNotFoundException, PlatformNotSupportedException, OutOfMemoryException, ExternalException, InvalidOperationException, IndexOutOfRangeException, ArrayTypeMismatchException, RankException, TypeInitializationException
- Throws:
Throwable
NotSupportedException
ArgumentException
ArgumentNullException
ArgumentOutOfRangeException
CultureNotFoundException
PlatformNotSupportedException
OutOfMemoryException
ExternalException
InvalidOperationException
IndexOutOfRangeException
ArrayTypeMismatchException
RankException
TypeInitializationException
-
getTimer
public static double getTimer() throws Throwable, ArgumentOutOfRangeException, PlatformNotSupportedException, ArgumentNullException, ArgumentException, InvalidTimeZoneException, IndexOutOfRangeException, SecurityException, UnauthorizedAccessException, IOException, OverflowException, InvalidOperationException
-
getNow
public static DateTime getNow() throws Throwable, ArgumentOutOfRangeException, PlatformNotSupportedException, ArgumentNullException, ArgumentException, InvalidTimeZoneException, IndexOutOfRangeException, SecurityException, UnauthorizedAccessException, IOException, OverflowException, InvalidOperationException
-
getTimeOfDay
public static DateTime getTimeOfDay() throws Throwable, ArgumentOutOfRangeException, PlatformNotSupportedException, ArgumentNullException, ArgumentException, InvalidTimeZoneException, IndexOutOfRangeException, SecurityException, UnauthorizedAccessException, IOException, OverflowException, InvalidOperationException
-
setTimeOfDay
public static void setTimeOfDay(DateTime TimeOfDay) throws Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, PlatformNotSupportedException, OutOfMemoryException, ExternalException, SecurityException
-
getToday
public static DateTime getToday() throws Throwable, ArgumentOutOfRangeException, PlatformNotSupportedException, ArgumentNullException, ArgumentException, InvalidTimeZoneException, OverflowException, SecurityException
-
setToday
public static void setToday(DateTime Today) throws Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, PlatformNotSupportedException, OutOfMemoryException, ExternalException, SecurityException
-
getDateString
public static String getDateString() throws Throwable, ArgumentOutOfRangeException, PlatformNotSupportedException, ArgumentNullException, ArgumentException, InvalidTimeZoneException, OverflowException, SecurityException, InvalidOperationException, IndexOutOfRangeException, FormatException, CultureNotFoundException
-
setDateString
public static void setDateString(String DateString) throws Throwable, ArgumentNullException, CultureNotFoundException, PlatformNotSupportedException, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, OverflowException, InvalidOperationException, FormatException, ArrayTypeMismatchException, ObjectDisposedException, NotSupportedException, SecurityException
- Throws:
Throwable
ArgumentNullException
CultureNotFoundException
PlatformNotSupportedException
ArgumentException
ArgumentOutOfRangeException
IndexOutOfRangeException
OverflowException
InvalidOperationException
FormatException
ArrayTypeMismatchException
ObjectDisposedException
NotSupportedException
SecurityException
-
getTimeString
public static String getTimeString() throws Throwable, ArgumentOutOfRangeException, PlatformNotSupportedException, ArgumentNullException, ArgumentException, InvalidTimeZoneException, IndexOutOfRangeException, SecurityException, UnauthorizedAccessException, IOException, OverflowException, InvalidOperationException, FormatException
-
setTimeString
public static void setTimeString(String TimeString) throws Throwable, ArgumentNullException, CultureNotFoundException, PlatformNotSupportedException, ArgumentException, IndexOutOfRangeException, OverflowException, TypeInitializationException, ArgumentOutOfRangeException, InvalidOperationException, ObjectDisposedException, InvalidCastException, SecurityException
- Throws:
Throwable
ArgumentNullException
CultureNotFoundException
PlatformNotSupportedException
ArgumentException
IndexOutOfRangeException
OverflowException
TypeInitializationException
ArgumentOutOfRangeException
InvalidOperationException
ObjectDisposedException
InvalidCastException
SecurityException
-
-