Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OfficeExifTimestamp

OfficeIMO.Drawing

Namespace
OfficeIMO.Drawing
Assembly
OfficeIMO.Core
Source revision
339caf644fc0 with working tree changes
Modifiers
sealed

A parsed Exif timestamp that preserves its source strings and timezone uncertainty.

Inheritance

  • object
  • OfficeExifTimestamp

Usage

Explore 2 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Methods

public static OfficeExifTimestamp Parse(string rawValue, string? rawOffset = null, string? rawSubseconds = null) #

Parses Exif date, offset and subseconds without assigning an absent timezone.

Parameters

rawValue string required
rawOffset string? = null optional
rawSubseconds string? = null optional

Properties

public string RawValue { get; } #

Original decoded date string.

public string FieldName { get; internal set; } #

Originating timestamp tag name when returned by image inspection.

public string? Source { get; internal set; } #

Originating profile location when returned by image inspection.

public string? RawOffset { get; } #

Original offset string, or null when absent.

public string? RawSubseconds { get; } #

Original fractional-second string, or null when absent.

public DateTime? LocalDateTime { get; } #

Local wall-clock value with DateTimeKind.Unspecified, or null when invalid.

public DateTimeOffset? Instant { get; } #

Offset-qualified instant, or null when the timezone is unknown or any timestamp component is invalid.

public bool HasKnownTimezone { get; } #

Whether the source supplies a valid explicit timezone offset.

public bool IsValid { get; } #

Whether every supplied component is valid.

public string? Issue { get; } #

Stable parse/precision diagnostic, or null.

public bool IsDateUnknown { get; } #

Whether the source uses Exif's blank representation of an unknown date.