com.aspose.cells
Classes 
AboveAverage
AbstractCalculationEngine
AbstractCalculationMonitor
AbstractGlobalizationSettings
AbstractInterruptMonitor
AbstractTextLoadOptions
ActiveXControl
ActiveXControlBase
ArcShape
Area
AutoFilter
AutoFitterOptions
AutomaticFill
AutoNumberedBulletValue
Axis
AxisBins
BaseShapeGuide
Bevel
Border
BorderCollection
BuiltInDocumentPropertyCollection
Bullet
BulletValue
Button
CalculationCell
CalculationData
CalculationOptions
Cell
CellArea
Cells
CellsColor
CellsDrawing
CellsException
CellsFactory
CellsHelper
CellWatch
CellWatchCollection
CharacterBulletValue
Chart
ChartArea
ChartCollection
ChartDataTable
ChartFrame
ChartGlobalizationSettings
ChartPoint
ChartPointCollection
ChartShape
ChartTextFrame
CheckBox
CheckBoxActiveXControl
CheckBoxCollection
CollectionBase
Color
ColorFilter
ColorHelper
ColorScale
Column
ColumnCollection
ComboBox
ComboBoxActiveXControl
CommandButtonActiveXControl
Comment
CommentCollection
CommentShape
ConditionalFormattingCollection
ConditionalFormattingIcon
ConditionalFormattingIconCollection
ConditionalFormattingResult
ConditionalFormattingValue
ConditionalFormattingValueCollection
ConnectionParameter
ConnectionParameterCollection
ContentTypeProperty
ContentTypePropertyCollection
CopyOptions
CustomDocumentPropertyCollection
CustomFilter
CustomFilterCollection
CustomGeometry
CustomImplementationFactory
CustomProperty
CustomPropertyCollection
CustomXmlPart
CustomXmlPartCollection
CustomXmlShape
DataBar
DataBarBorder
DataLabels
DataSorter
DataSorterKey
DataSorterKeyCollection
DateTime
DateTimeGroupItem
DBConnection
DefaultStyleSettings
DeleteOptions
DialogBox
DifSaveOptions
DigitalSignature
DigitalSignatureCollection
DisplayUnitLabel
DocumentProperty
DocumentPropertyCollection
DocxSaveOptions
DrawObject
DrawObjectEventHandler
DropBars
DxfCollection
DynamicFilter
Encoding
ErrorBar
ErrorCheckOption
ErrorCheckOptionCollection
ExportObjectEvent
ExportRangeToJsonOptions
ExportTableOptions
ExternalConnection
ExternalConnectionCollection
ExternalLink
ExternalLinkCollection
FileFontSource
FileFormatInfo
FileFormatUtil
Fill
FillFormat
FilterColumn
FilterColumnCollection
FindOptions
Floor
FolderFontSource
Font
FontConfigs
FontSetting
FontSettingCollection
FontSourceBase
Format3D
FormatCondition
FormatConditionCollection
FormulaParseOptions
FormulaSettings
Geometry
GlobalizationSettings
GlowEffect
GradientFill
GradientStop
GradientStopCollection
GroupBox
GroupFill
GroupShape
HeaderFooterCommand
HorizontalPageBreak
HorizontalPageBreakCollection
HtmlLoadOptions
HtmlSaveOptions
Hyperlink
HyperlinkCollection
IconFilter
IconSet
ImageActiveXControl
ImageFormat
ImageOrPrintOptions
ImageSaveOptions
ImportTableOptions
IndividualFontConfigs
InsertOptions
InterruptMonitor
JsonLayoutOptions
JsonLoadOptions
JsonSaveOptions
JsonUtility
Label
LabelActiveXControl
Legend
LegendEntry
LegendEntryCollection
License
Line
LineFormat
LineShape
ListBox
ListBoxActiveXControl
ListColumn
ListColumnCollection
ListObject
ListObjectCollection
LoadFilter
LoadOptions
MarkdownSaveOptions
Marker
MemoryFontSource
MetadataOptions
Metered
MsoFillFormat
MsoFillFormatHelper
MsoFormatPicture
MsoLineFormat
MsoLineFormatHelper
MsoTextFrame
MultipleFilterCollection
Name
NameCollection
NegativeBarFormat
NoneBulletValue
NoneFill
OdsCellField
OdsCellFieldCollection
OdsLoadOptions
OdsPageBackground
OdsSaveOptions
OleObject
OleObjectCollection
OoxmlSaveOptions
Outline
Oval
PageEndSavingArgs
PageSavingArgs
PageSetup
PageStartSavingArgs
PaneCollection
PasteOptions
PatternFill
PdfBookmarkEntry
PdfSaveOptions
PdfSecurityOptions
PicFormatOption
Picture
PictureBulletValue
PictureCollection
PivotField
PivotFieldCollection
PivotFilter
PivotFilterCollection
PivotFormatCondition
PivotFormatConditionCollection
PivotItem
PivotItemCollection
PivotOptions
PivotPageFields
PivotTable
PivotTableCollection
PlotArea
PptxSaveOptions
ProtectedRange
ProtectedRangeCollection
Protection
QueryTable
QueryTableCollection
RadioButton
RadioButtonActiveXControl
Range
RangeCollection
RectangleShape
ReferredArea
ReferredAreaCollection
ReflectionEffect
ReplaceOptions
Revision
RevisionAutoFormat
RevisionCellChange
RevisionCellComment
RevisionCellMove
RevisionCollection
RevisionCustomView
RevisionDefinedName
RevisionFormat
RevisionInsertDelete
RevisionInsertSheet
RevisionLog
RevisionLogCollection
RevisionMergeConflict
RevisionQueryTable
RevisionRenameSheet
Row
RowCollection
SaveOptions
Scenario
ScenarioCollection
ScenarioInputCell
ScenarioInputCellCollection
ScrollBar
ScrollBarActiveXControl
Series
SeriesCollection
SeriesLayoutProperties
ShadowEffect
Shape
ShapeCollection
ShapeFormat
ShapeGuide
ShapeGuideCollection
ShapePath
ShapePathCollection
ShapePathPoint
ShapePathPointCollection
ShapePropertyCollection
ShapeSegmentPath
ShapeSegmentPathCollection
ShapeTextAlignment
SheetPrintingPreview
SheetRender
SignatureLine
Slicer
SlicerCache
SlicerCacheItem
SlicerCacheItemCollection
SlicerCollection
SmartArtShape
SmartTag
SmartTagCollection
SmartTagOptions
SmartTagProperty
SmartTagPropertyCollection
SmartTagSetting
SolidFill
Sparkline
SparklineCollection
SparklineGroup
SparklineGroupCollection
SpinButtonActiveXControl
Spinner
SpreadsheetML2003SaveOptions
StreamProviderOptions
Style
StyleFlag
SubtotalSetting
SvgSaveOptions
SxRng
TableStyle
TableStyleCollection
TableStyleElement
TableStyleElementCollection
TableToRangeOptions
TextBox
TextBoxActiveXControl
TextBoxCollection
TextEffectFormat
TextOptions
TextParagraph
TextParagraphCollection
TextTabStop
TextTabStopCollection
TextureFill
ThemeColor
ThreadedComment
ThreadedCommentAuthor
ThreadedCommentAuthorCollection
ThreadedCommentCollection
ThreeDFormat
TickLabelItem
TickLabels
TilePicOption
Timeline
TimelineCollection
Title
ToggleButtonActiveXControl
Top10
Top10Filter
Trendline
TrendlineCollection
TxtLoadOptions
TxtSaveOptions
UnionRange
UnknownControl
Validation
ValidationCollection
VbaModule
VbaModuleCollection
VbaProject
VbaProjectReference
VbaProjectReferenceCollection
VerticalPageBreak
VerticalPageBreakCollection
VmlShapeGuide
Walls
WarningInfo
WebExtension
WebExtensionBinding
WebExtensionBindingCollection
WebExtensionCollection
WebExtensionProperty
WebExtensionPropertyCollection
WebExtensionReference
WebExtensionReferenceCollection
WebExtensionShape
WebExtensionTaskPane
WebExtensionTaskPaneCollection
WebQueryConnection
Workbook
WorkbookDesigner
WorkbookMetadata
WorkbookPrintingPreview
WorkbookRender
WorkbookSettings
Worksheet
WorksheetCollection
WriteProtection
XlsbSaveOptions
XlsSaveOptions
XmlColumnProperty
XmlDataBinding
XmlLoadOptions
XmlMap
XmlMapCollection
XmlSaveOptions
XpsSaveOptions
Interfaces 
ICellsDataTable
ICustomFunction
ICustomParser
IExportObjectListener
IFilePathProvider
IPageSavingCallback
ISmartMarkerCallBack
IStreamProvider
IWarningCallback
LightCellsDataHandler
LightCellsDataProvider
Constants 
AccessCacheOptions
ActiveXPersistenceType
AutoFillType
AutoFitMergedCellsType
AutoFitWrappedTextType
AutoShapeType
AxisType
BackgroundMode
BackgroundType
Bar3DShapeType
BevelPresetType
BevelType
BorderType
BubbleSizeRepresents
BuiltinStyleType
BulletType
CalcModeType
CalculationPrecisionStrategy
CategoryType
CellBorderType
CellValueFormatStrategy
CellValueType
ChartLineFormattingType
ChartMarkerType
ChartSplitType
ChartTextDirectionType
ChartType
CheckValueType
ColorDepth
ColorType
CommentTitleType
ConnectionDataSourceType
ConnectionParameterType
ConsolidationFunction
ControlBorderType
ControlCaptionAlignmentType
ControlListStyle
ControlMatchEntryType
ControlMousePointerType
ControlPictureAlignmentType
ControlPicturePositionType
ControlPictureSizeMode
ControlScrollBarType
ControlScrollOrientation
ControlSpecialEffectType
ControlType
CopyFormatType
CountryCode
CredentialsMethodType
CrossType
DataBarAxisPosition
DataBarBorderType
DataBarFillType
DataBarNegativeColorType
DataLabelShapeType
DataLabelsSeparatorType
DataLablesSeparatorType
DateTimeGroupingType
DefaultEditLanguage
DirectoryType
DisplayDrawingObjects
DisplayUnitType
DrawObjectEnum
DropButtonStyle
DynamicFilterType
EmfRenderSetting
EncryptionType
ErrorBarDisplayType
ErrorBarType
ErrorCheckType
ExceptionType
ExternalLinkType
FileFormatType
FillPattern
FillPictureType
FillType
FilterOperatorType
FilterType
FontSchemeType
FontSourceType
FontUnderlineType
FormatConditionType
FormatConditionValueType
FormatSetType
FormattingType
GradientColorType
GradientDirectionType
GradientFillType
GradientPresetType
GradientStyleType
GridlineType
HeaderFooterCommandType
HtmlCrossType
HtmlExportDataOptions
HtmlFormatHandlingType
HtmlHiddenColDisplayType
HtmlHiddenRowDisplayType
HtmlLinkTargetType
IconSetType
ImageType
InputMethodEditorMode
LabelPositionType
LegendPositionType
LightRigDirectionType
LightRigType
LineCapType
LineJoinType
LineSpaceSizeType
LineType
LoadDataFilterOptions
LoadFormat
LookAtType
LookInType
MapChartLabelLayout
MapChartProjectionType
MapChartRegionType
MemorySetting
MetadataType
MirrorType
MsoArrowheadLength
MsoArrowheadStyle
MsoArrowheadWidth
MsoDrawingType
MsoLineDashStyle
MsoLineStyle
MsoPresetTextEffect
MsoPresetTextEffectShape
NameScopeType
NumberCategoryType
OdsCellFieldType
OdsGeneratorType
OdsPageBackgroundGraphicPositionType
OdsPageBackgroundGraphicType
OdsPageBackgroundType
OLEDBCommandType
OoxmlCompliance
OoxmlCompressionType
OperatorType
PageLayoutAlignmentType
PageOrientationType
PaneStateType
PaperSizeType
ParameterType
PasteOperationType
PasteType
PdfCompliance
PdfCompressionCore
PdfCustomPropertiesExport
PdfFontEncoding
PdfOptimizationType
PivotConditionFormatRuleType
PivotConditionFormatScopeType
PivotFieldDataDisplayFormat
PivotFieldSubtotalType
PivotFieldType
PivotFilterType
PivotGroupByType
PivotItemPosition
PivotMissingItemLimitType
PivotTableAutoFormatType
PivotTableStyleType
PlacementType
PlotDataByType
PlotEmptyCellsType
PresetCameraType
PresetMaterialType
PresetShadowType
PresetWordArtStyle
PrintCommentsType
PrintErrorsType
PrintingPageType
PrintOrderType
PrintSizeType
PropertyType
ProtectionType
QuartileCalculationType
ReConnectionMethodType
RectangleAlignmentType
ReflectionEffectType
RenameStrategy
ResourceLoadingType
RevisionActionType
RevisionType
SaveFormat
SelectionType
ShapeAnchorType
ShapeLockType
ShapePathType
SheetType
ShiftType
ShowDropButtonType
SlicerCacheCrossFilterType
SlicerCacheItemSortType
SlicerStyleType
SmartTagShowType
SortOnType
SortOrder
SparklineAxisMinMaxType
SparklinePresetStyleType
SparklineType
SqlDataType
StyleModifyFlag
TableDataSourceType
TableStyleElementType
TableStyleType
TargetModeType
TextAlignmentType
TextAutonumberScheme
TextCapsType
TextCrossType
TextDirectionType
TextFontAlignType
TextNodeType
TextOrientationType
TextOverflowType
TextStrikeType
TextTabAlignmentType
TextureType
TextVerticalType
ThemeColorType
TickLabelPositionType
TickMarkType
TiffCompression
TimePeriodType
TimeUnit
TotalsCalculation
TrendlineType
TxtLoadStyleStrategy
TxtValueQuoteType
UpdateLinksType
ValidationAlertType
ValidationType
VbaModuleType
VbaProjectReferenceType
ViewType
VisibilityType
WarningType
WebExtensionStoreType
WeightType
XAdESType

com.aspose.cells
Class DateTime

java.lang.Object
    extended by com.aspose.cells.DateTime
All Implemented Interfaces:
java.lang.Comparable

public class DateTime 
extends java.lang.Object

Represents an instant in time, typically expressed as a date and time of day.


Constructor Summary
DateTime(int year, int month, int day)
           Initializes a new instance of the DateTime object to the specified year, month, and day.
DateTime(int year, int month, int day, int hour, int minute, int second)
           Initializes a new instance of the DateTime object to the specified year, month, day, hour, minute, and second.
DateTime(int year, int month, int day, int hour, int minute, int second, int millisecond)
           Initializes a new instance of the DateTime object to the specified year, month, day, hour, minute, second, and millisecond.
DateTime(java.util.Date date)
           Initializes a new instance of the DateTime object to the specified Date object
DateTime(java.util.Calendar cld)
           Initializes a new instance of the DateTime object to the specified Calendar object
 
Method Summary
DateTimeaddDays(double value)
           Adds the specified number of days to the value of this instance.
DateTimeaddHours(double value)
           Adds the specified number of hours to the value of this instance.
DateTimeaddMilliseconds(double value)
           Adds the specified number of milliseconds to the value of this instance.
DateTimeaddMinutes(double value)
           Adds the specified number of minutes to the value of this instance.
DateTimeaddMonths(int months)
           Adds the specified number of months to the value of this instance.
DateTimeaddSeconds(double value)
           Adds the specified number of seconds to the value of this instance.
DateTimeaddYears(int value)
           Adds the specified number of years to the value of this instance.
intcompareTo(DateTime value)
           Compares the value of this instance to a specified DateTime value and returns an integer that indicates whether this instance is earlier than, the same as, or later than the specified DateTime value.
intcompareTo(java.lang.Object value)
           Compares the value of this instance to a specified object that contains a specified DateTime value, and returns an integer that indicates whether this instance is earlier than, the same as, or later than the specified DateTime value.
booleanequals(java.lang.Object value)
           Returns a value indicating whether this instance is equal to a specified object.
intgetDay()
           Gets the day of the month represented by this instance.
intgetDayOfWeek()
           Gets the day of the week represented by this instance.
intgetDayOfYear()
           Gets the day of the year represented by this instance.
intgetHour()
           Gets the hour component of the date represented by this instance.
intgetMillisecond()
           Gets the milliseconds component of the date represented by this instance.
intgetMinute()
           Gets the minute component of the date represented by this instance.
intgetMonth()
           Gets the month component of the date represented by this instance.
static DateTimegetNow()
           Gets a DateTime object that is set to the current date and time on this computer, expressed as the local time.
intgetSecond()
           Gets the seconds component of the date represented by this instance.
intgetYear()
           Gets the year component of the date represented by this instance.
inthashCode()
           Returns the hash code for this instance.
java.util.CalendartoCalendar()
           Converts the value of the current DateTime object to Calendar object.
java.util.DatetoDate()
           Converts the value of the current DateTime object to Date object.
DateTimetoLocalTime()
           Converts the value of the current DateTime object to local time.
java.lang.StringtoString()
           Converts the value of the current DateTime object to its equivalent string representation.
DateTimetoUniversalTime()
           Converts the value of the current DateTime object to Coordinated Universal Time(UTC).
 

Constructor Detail

DateTime

public DateTime(int year, int month, int day)
Initializes a new instance of the DateTime object to the specified year, month, and day.
Parameters:
year - The year (1 through 9999).
month - The month (1 through 12).
day - The day (1 through the number of days in month).

DateTime

public DateTime(int year, int month, int day, int hour, int minute, int second)
Initializes a new instance of the DateTime object to the specified year, month, day, hour, minute, and second.
Parameters:
year - The year (1 through 9999).
month - The month (1 through 12).
day - The day (1 through the number of days in month).
hour - The hours (0 through 23).
minute - The minutes (0 through 59).
second - The seconds (0 through 59).

DateTime

public DateTime(int year, int month, int day, int hour, int minute, int second, int millisecond)
Initializes a new instance of the DateTime object to the specified year, month, day, hour, minute, second, and millisecond.
Parameters:
year - The year (1 through 9999).
month - The month (1 through 12).
day - The day (1 through the number of days in month).
hour - The hours (0 through 23).
minute - The minutes (0 through 59).
second - The seconds (0 through 59).
millisecond - The milliseconds (0 through 999).

DateTime

public DateTime(java.util.Date date)
Initializes a new instance of the DateTime object to the specified Date object
Parameters:
date - The Date object

DateTime

public DateTime(java.util.Calendar cld)
Initializes a new instance of the DateTime object to the specified Calendar object
Parameters:
cld - The Calendar object

Method Detail

toDate

public java.util.Date toDate()
Converts the value of the current DateTime object to Date object.
Returns:
Date object

toCalendar

public java.util.Calendar toCalendar()
Converts the value of the current DateTime object to Calendar object.
Returns:
Calendar object

toUniversalTime

public DateTime toUniversalTime()
Converts the value of the current DateTime object to Coordinated Universal Time(UTC).
Returns:
A DateTime object of UTC

toLocalTime

public DateTime toLocalTime()
Converts the value of the current DateTime object to local time.
Returns:
A DateTime object of local

addDays

public DateTime addDays(double value)
Adds the specified number of days to the value of this instance.
Parameters:
value - A number of whole and fractional days. The value parameter can be negative or positive.
Returns:
A DateTime object whose value is the sum of the date and time represented by this instance and the number of days represented by value.

addHours

public DateTime addHours(double value)
Adds the specified number of hours to the value of this instance.
Parameters:
value - A number of whole and fractional hours. The value parameter can be negative or positive.
Returns:
A DateTime object whose value is the sum of the date and time represented by this instance and the number of hours represented by value.

addMilliseconds

public DateTime addMilliseconds(double value)
Adds the specified number of milliseconds to the value of this instance.
Parameters:
value - A number of whole and fractional milliseconds. The value parameter can be negative or positive. Note that this value is rounded to the nearest integer.
Returns:
A DateTime object whose value is the sum of the date and time represented by this instance and the number of milliseconds represented by value.

addMinutes

public DateTime addMinutes(double value)
Adds the specified number of minutes to the value of this instance.
Parameters:
value - A number of whole and fractional minutes. The value parameter can be negative or positive.
Returns:
A DateTime object whose value is the sum of the date and time represented by this instance and the number of minutes represented by value.

addMonths

public DateTime addMonths(int months)
Adds the specified number of months to the value of this instance.
Parameters:
months - A number of months. The months parameter can be negative or positive.
Returns:
A DateTime object whose value is the sum of the date and time represented by this instance and months.

addSeconds

public DateTime addSeconds(double value)
Adds the specified number of seconds to the value of this instance.
Parameters:
value - A number of whole and fractional seconds. The value parameter can be negative or positive.
Returns:
A DateTime object whose value is the sum of the date and time represented by this instance and the number of seconds represented by value.

addYears

public DateTime addYears(int value)
Adds the specified number of years to the value of this instance.
Parameters:
value - A number of years. The value parameter can be negative or positive.
Returns:
A DateTime object whose value is the sum of the date and time represented by this instance and the number of years represented by value.

compareTo

public int compareTo(java.lang.Object value)
Compares the value of this instance to a specified object that contains a specified DateTime value, and returns an integer that indicates whether this instance is earlier than, the same as, or later than the specified DateTime value.
Parameters:
value - A boxed DateTime object to compare, or null.
Returns:
A signed number indicating the relative values of this instance and value. Value Description Less than zero This instance is earlier than value. Zero This instance is the same as value. Greater than zero This instance is later than value, or value is null.

compareTo

public int compareTo(DateTime value)
Compares the value of this instance to a specified DateTime value and returns an integer that indicates whether this instance is earlier than, the same as, or later than the specified DateTime value.
Parameters:
value - A DateTime object to compare.
Returns:
A signed number indicating the relative values of this instance and the value parameter. Value Description Less than zero This instance is earlier than value. Zero This instance is the same as value. Greater than zero This instance is later than value.

hashCode

public int hashCode()
Returns the hash code for this instance.
Returns:
A 32-bit signed integer hash code.

equals

public boolean equals(java.lang.Object value)
Returns a value indicating whether this instance is equal to a specified object.
Parameters:
value - An object to compare to this instance.
Returns:
true if value is an instance of DateTime and equals the value of this instance; otherwise, false.

getDay

public int getDay()
Gets the day of the month represented by this instance.
Returns:
The day component, expressed as a value between 1 and 31.

getDayOfWeek

public int getDayOfWeek()
Gets the day of the week represented by this instance.
Returns:
the day of the week of this DateTime value.

getDayOfYear

public int getDayOfYear()
Gets the day of the year represented by this instance.
Returns:
The day of the year, expressed as a value between 1 and 366.

getHour

public int getHour()
Gets the hour component of the date represented by this instance.
Returns:
The hour component, expressed as a value between 0 and 23.

getMillisecond

public int getMillisecond()
Gets the milliseconds component of the date represented by this instance.
Returns:
The milliseconds component, expressed as a value between 0 and 999.

getMinute

public int getMinute()
Gets the minute component of the date represented by this instance.
Returns:
The minute component, expressed as a value between 0 and 59.

getMonth

public int getMonth()
Gets the month component of the date represented by this instance.
Returns:
The month component, expressed as a value between 1 and 12.

getNow

public static DateTime getNow()
Gets a DateTime object that is set to the current date and time on this computer, expressed as the local time.
Returns:
A DateTime object whose value is the current local date and time.

getSecond

public int getSecond()
Gets the seconds component of the date represented by this instance.
Returns:
The seconds, between 0 and 59.

getYear

public int getYear()
Gets the year component of the date represented by this instance.
Returns:
The year, between 1 and 9999.

toString

public java.lang.String toString()
Converts the value of the current DateTime object to its equivalent string representation.
Returns:
A string representation of the value of the current DateTime object.

See Also:
          Aspose.Cells Documentation - the home page for the Aspose.Cells Product Documentation.
          Aspose.Cells Support Forum - our preferred method of support.