This document is provided on an "AS IS" basis without warranties of any kind. Smartsite iXperion class libraries may change in future releases.

Syntax

C# Copy imageCopy Code
                                  public sealed class DateTimeViperMethods
Visual Basic (Declaration) Copy imageCopy Code
                                  Public NotInheritable Class DateTimeViperMethods

The type exposes the following methods.

Public Methods

  Name Description
Public method AddAIMRelation
Adds an item to the AIM relations collection.
(Inherited from Module.)
Public method Static member AddDays
Adds the specified number of days to the value of the given DateTime.
Public method Static member AddHours
Adds the specified number of hours to the value of the given DateTime.
Public method Static member AddMilliseconds
Adds the specified number of milliseconds to the value of the given DateTime.
Public method Static member AddMinutes
Adds the specified number of minutes to the value of the given DateTime.
Public method Static member AddMonths
Adds the specified number of months to the value of the given DateTime.
Public method Static member AddSeconds
Adds the specified number of seconds to the value of the given DateTime.
Public method Static member AddYears
Adds the specified number of years to the value of the given DateTime.
Public method ApplyProperties
Applies the properties from the SXML processing environment into the current module.
(Inherited from BaseModule.)
Public method BeginExecute
Override this to execute code before Execute() is fired.
Last point to add data to the Cache Signature.
(Inherited from Module.)
Public method Static member CalculateAge Overloaded.
Public method Capture
Passes an SXML subtree to the current module.
(Inherited from BaseModule.)
Public method CheckTimeout
Checks whether execution has timed out, given the setting of TimeoutMilliseconds()()()().
(Inherited from BaseModule.)
Public method ClearForcedResult
Sets the result of the macro.
used to override the normal handling of the result creation.
(Inherited from Module.)
Public method Static member DaysBetween
Returns the number of whole and fractional days between two given DateTime values.
Public method Dispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from BaseModule.)
Public method DoPreparse
Check whether to preparse data in the given property.
(Inherited from BaseModule.)
Public method DoRecurseTag
Determines whether to recurse on a given tag
Public method EndExecute
Override this to execute code after Execute() is fired.
(Inherited from Module.)
Public method Equals (Inherited from Object.)
Public method EvaluatePropertyExpression
Evaluates an expression in a property with Expression Syntax
(Inherited from Module.)
Public method Execute
Execute the macro. Should be overridden by inherited class.
(Inherited from Module.)
Public method ExecuteRawParameter
Executes the data of a raw parameter.
(Inherited from Module.)
Public method ExistsBuffer
Checks whether a local buffer exists.
(Inherited from BaseModule.)
Public method Find
Finds the specified child module.
(Inherited from BaseModule.)
Public method FindExtension
Finds an extension macro.
(Inherited from BaseModule.)
Public method GetAIMRelations
Gets a list of all outgoing AIM relations created by the macro.
(Inherited from BaseModule.)
Public method GetBuffer
Gets a local buffer.
(Inherited from BaseModule.)
Public method Static member GetDate Overloaded.
Public method Static member GetDay Overloaded.
Public method Static member GetDayOfWeek Overloaded.
Public method Static member GetDayOfYear Overloaded.
Public method Static member GetDaysInMonth
Returns the number of days in the specified month and year.
Public method Static member GetDaysInYear
Returns the number of days in the specified year.
Public method GetException
Returns the text message of the exception that has occurred.
(Inherited from BaseModule.)
Public method GetExceptionSmartsiteCode
Returns the Smartsite Error code of the exception that has occurred.
(Inherited from BaseModule.)
Public method GetExceptionString
Returns the full information of the exception that has occurred, including the stack trace.
(Inherited from BaseModule.)
Public method GetExceptionType
Returns the full Type name of the exception that has occurred.
(Inherited from BaseModule.)
Public method GetForcedResult
Gets the forced result of the macro, set by overriding the normal rendering using SetForcedResult().
(Inherited from Module.)
Public method GetHashCode (Inherited from Object.)
Public method Static member GetHours Overloaded.
Public method GetInnerException
Returns the text message of the inner exception of the exception that has occurred.
(Inherited from BaseModule.)
Public method GetInnerExceptionSmartsiteCode
Returns Smartsite error code of the inner exception of the exception that has occurred.
(Inherited from BaseModule.)
Public method GetInnerExceptionString
Returns the full information of the inner exception of the exception that has occurred, including the stack trace.
(Inherited from BaseModule.)
Public method GetInnerExceptionType
Returns the full Type name of the inner exception of the exception that has occurred.
(Inherited from BaseModule.)
Public method Static member GetMilliSeconds Overloaded.
Public method Static member GetMinutes Overloaded.
Public method Static member GetMonth Overloaded.
Public method GetParameter
Gets the value of the given parameter/property.
(Inherited from BaseModule.)
Public method GetParameter
Gets the value of the given parameter/property.
(Inherited from BaseModule.)
Public method GetParent
Gets the parent Module of this module.
(Inherited from BaseModule.)
Public method GetParent
Gets the parent Module of this module, optionally crossing RenderContext boundaries if allowed so by embeds (Sandboxing off).
(Inherited from BaseModule.)
Public method GetRenderTime
Returns the render time of the macro in milliseconds.
(Inherited from Module.)
Public method GetResult
Returns the result of the macro.
Typically used in the ResultFormat property, to format, convert or encode the result.
(Inherited from BaseModule.)
Public method GetResult
Returns the result of the macro.
Typically used in the ResultFormat property, to format, convert or encode the result.
(Inherited from BaseModule.)
Public method Static member GetSeconds Overloaded.
Public method GetType (Inherited from Object.)
Public method Static member GetUtcOffset Overloaded.
Public method Static member GetYear Overloaded.
Public method Static member HoursBetween
Returns the number of whole and fractional hours between two given DateTime values.
Public method Initialize
Called to initialize this Module
(Inherited from BaseModule.)
Public method IsChildOf
Determines whether the module is a descendant of the given parent
(Inherited from BaseModule.)
Public method Static member IsDaylightSavingTime
Indicates whether the given DateTime value is within the Daylight Saving Time range for the current time zone.
Public method Static member IsLeapYear
Determines whether the specified year is a leap year.
Public method Static member IsLocalTime
Determines whether the time represented by the given DateTime is based on local time.
Public method Static member IsToday
Determines whether the specified date is today.
Public method Static member IsUniversalTime
Determines whether the time represented by the given DateTime is based on universal time.
Public method Static member IsUnspecifiedTimeZone
Determines whether the time represented by the given DateTime is based on an unspecified time zone.
Public method Static member MillisecondsBetween
Returns the number of whole and fractional milliseconds between two given DateTime values.
Public method Static member MinutesBetween
Returns the number of whole and fractional minutes between two given DateTime values.
Public method ParameterExists
Checks whether the given parameter/property is set.
(Inherited from BaseModule.)
Public method PreInitialize
Called just before initialization of the module
(Inherited from Module.)
Public method ReadyExecuting
Method that is called after the module has executed.
(Inherited from Module.)
Public method ScopeTerminated
Executed when the module is about to get out of scope.
(Inherited from BaseModule.)
Public method Static member SecondsBetween
Returns the number of whole and fractional seconds between two given DateTime values.
Public method SetBuffer
Sets a local buffer.
(Inherited from BaseModule.)
Public method Static member SetDate
Sets the date components of the given DateTime.
Public method Static member SetDay
Sets the day component of the given DateTime.
Public method SetForcedResult
Sets the result of the macro.
used to override the normal handling of the result creation.
(Inherited from Module.)
Public method SetForcedResult
Sets the result of the macro.
used to override the normal handling of the result creation.
(Inherited from Module.)
Public method SetForcedResult
Sets the result of the macro.
used to override the normal handling of the result creation.
(Inherited from Module.)
Public method SetForcedResult
Sets the result of the macro.
used to override the normal handling of the result creation.
(Inherited from Module.)
Public method SetForcedResult
Sets the result of the macro.
used to override the normal handling of the result creation.
(Inherited from Module.)
Public method SetForcedResult
Sets the result of the macro.
used to override the normal handling of the result creation.
(Inherited from Module.)
Public method SetForcedResult
Sets the result of the macro.
used to override the normal handling of the result creation.
(Inherited from Module.)
Public method Static member SetHours
Sets the hour component of the given DateTime.
Public method Static member SetMilliSeconds
Sets the milliseconds component of the given DateTime.
Public method Static member SetMinutes
Sets the minutes component of the given DateTime.
Public method Static member SetMonth
Sets the month component of the given DateTime.
Public method Static member SetSeconds
Sets the seconds component of the given DateTime.
Public method Static member SetTime
Sets the time components of the given DateTime.
Public method Static member SetYear
Sets the year component of the given DateTime.
Public method TestCondition
Tests whether execution should take place based on the expression in the condition property
(Inherited from Module.)
Public method TestPropertyExpression
Tests whether an expression in a property with Expression Syntax evaluates to true.
(Inherited from Module.)
Public method ThrowCurrentException
Makes Smartsite throw the current exception.
(Inherited from BaseModule.)
Public method ThrowInnerException
Makes Smartsite throw the inner exception.
(Inherited from BaseModule.)
Public method Static member ToIsoString
Converts the value of the given DateTime to the equivalent string representation specified by the ISO-8601 standard ("yyyy-MM-ddTHH:mm:ss").
Public method Static member ToLocalTime
Converts the value of the given DateTime object to local time.
Public method Static member ToRfcString
Converts the value of the given DateTime to the equivalent string representation specified by the RFC1123 standard ("ddd, dd MMM yyyy HH:mm:ss GMT").
Public method ToString
Returns a string that represents the current macro.
(Inherited from Module.)
Public method ToString
Returns a String that represents the current Object.
(Inherited from Module.)
Public method Static member ToUniversalTime
Converts the value of the given DateTime object to universal time.

Protected Methods

  Name Description
Protected method Finalize (Inherited from Object.)
Protected method IsBufferName
Determines whether the data is a buffer name.
(Inherited from Module.)
Protected method IsSingleSaveBuffername
Determines whether a single save buffername is used.
(Inherited from Module.)
Protected method MemberwiseClone (Inherited from Object.)
Protected method SetCurrentProperty
Sets the current property.
(Inherited from BaseModule.)

Explicit Interface Implementations

  Name Description
Explicit interface implemetation Private method IModuleExec..::..Cancel (Inherited from BaseModule.)
Explicit interface implemetation Private method IModuleExec..::..FinishExecute (Inherited from BaseModule.)
Explicit interface implemetation Private method IModuleExec..::..Initialize (Inherited from BaseModule.)
Explicit interface implemetation Private method IModuleExec..::..SetChildException (Inherited from BaseModule.)
Explicit interface implemetation Private method IModuleExec..::..SetInitialized
Triggers the Initialized status in the module.
(Inherited from BaseModule.)
Explicit interface implemetation Private method IModuleExec..::..SetProperty (Inherited from BaseModule.)
Explicit interface implemetation Private method IModuleExec..::..SetProperty (Inherited from BaseModule.)
Explicit interface implemetation Private method IModuleExec..::..StartExecute (Inherited from BaseModule.)

See Also

Advanced