NX Open C++ Reference Guide
|
This class stores a date and time. More...
This class stores a date and time.
The class does verify that the year string and time string are in a valid format. The minimum year is 1900 and the maximum year is 4499.
NOTE: The class does NOT verify that the combination of day, month, year and time is valid.
To create a new instance of this class, use DateBuilder::CreateDateItemBuilder
Created in NX8.0.0.
Days of the month.
Returns the day
Created in NX8.0.0.
License requirements : None
Returns the month
Created in NX8.0.0.
License requirements : None
Sets the day
Created in NX8.0.0.
License requirements : None
day | day |
Sets the month
Created in NX8.0.0.
License requirements : None
month | month |
void NXOpen::DateItemBuilder::SetTime | ( | const NXString & | time | ) |
Sets the time.
The time string is a 24-hour clock time in the format HH:MM:SS or HH:MM. The string can also be empty.
Created in NX8.0.0.
License requirements : None
time | time |
void NXOpen::DateItemBuilder::SetYear | ( | const NXString & | year | ) |
Sets the year.
The year string is four characters long and represents an integer within the range minimum year and maximum year (inclusive). The year can also be an empty string.
Created in NX8.0.0.
License requirements : None
year | year |
Returns the time.
The time string is a 24-hour clock time in the format HH:MM:SS or HH:MM. The string can also be empty.
Created in NX8.0.0.
License requirements : None
virtual bool NXOpen::DateItemBuilder::Validate | ( | ) | [virtual] |
Validate whether the inputs to the component are sufficient for commit to be called.
If the component is not in a state to commit then an exception is thrown. For example, if the component requires you to set some property, this method will throw an exception if you haven't set it. This method throws a not-yet-implemented NXException for some components.
Implements NXOpen::GeometricUtilities::IComponentBuilder.
Returns the year.
The year string is four characters long and represents an integer within the range minimum year and maximum year (inclusive). The year can also be an empty string.
Created in NX8.0.0.
License requirements : None