Class DateTimeToken
Inheritance
System.Object
DateTimeToken
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Sdl.LanguagePlatform.Core.dll
public class DateTimeToken : Token, ILocalizableToken
Constructors
Declaration
Declaration
public DateTimeToken(DateTimeToken other)
Parameters
Declaration
public DateTimeToken(string text, DateTime dateTime, DateTimePatternType type)
Parameters
Declaration
public DateTimeToken(string text, DateTime dateTime, DateTimePatternType type, string formatString)
Parameters
Type |
Name |
Description |
System.String |
text |
|
System.DateTime |
dateTime |
|
DateTimePatternType |
type |
|
System.String |
formatString |
|
Properties
Declaration
public DateTimePatternType DateTimePatternType { get; set; }
Property Value
Declaration
public string FormatString { get; set; }
Property Value
Type |
Description |
System.String |
|
Declaration
public bool IsDateToken { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public override bool IsPlaceable { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
Declaration
public override bool IsSubstitutable { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
Declaration
public bool IsTimeToken { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public DateTime Value { get; set; }
Property Value
Type |
Description |
System.DateTime |
|
Methods
Declaration
public override void AcceptSegmentElementVisitor(ISegmentElementVisitor visitor)
Parameters
Overrides
Declaration
public override SegmentElement Duplicate()
Returns
Overrides
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
Declaration
public override SegmentElement.Similarity GetSimilarity(SegmentElement other)
Parameters
Returns
Overrides
Declaration
protected override TokenType GetTokenType()
Returns
Overrides
Declaration
public virtual bool Localize(CultureInfo culture, AutoLocalizationSettings autoLocalizationSettings)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public virtual bool Localize(CultureInfo culture, AutoLocalizationSettings autoLocalizationSettings, ILocalizableToken originalMemoryToken, bool adjustCasing)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public virtual bool SetValue(Token blueprint, bool keepNumericSeparators)
Parameters
Type |
Name |
Description |
Token |
blueprint |
|
System.Boolean |
keepNumericSeparators |
|
Returns
Type |
Description |
System.Boolean |
|
Implements