# OfficeExifTimestamp

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

Class 

`OfficeIMO.Drawing`

**Namespace**

`OfficeIMO.Drawing`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`273d35d5ba8a` with working tree changes

**Source**

[OfficeExifNormalization.cs:38](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Core/Raster/OfficeExifNormalization.cs#L38)

**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.

### Returned or exposed by 2

- Method [OfficeExifTimestamp.Parse](/api/core/officeimo-drawing-officeexiftimestamp/#method-parse-string-string-string)
- Property [OfficeImageMetadataInspection.Timestamps](/api/core/officeimo-drawing-officeimagemetadatainspection/#property-timestamps)

Filter members 

Show inherited

## Methods

`public static OfficeExifTimestamp Parse(string rawValue, string? rawOffset = null, string? rawSubseconds = null)` [#](#method-parse-string-string-string)

[OfficeExifNormalization.cs:38](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Core/Raster/OfficeExifNormalization.cs#L38)

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

Parameters

**rawValue string required**

**rawOffset string? = null optional**

**rawSubseconds string? = null optional**

Returns

`OfficeExifTimestamp`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public string RawValue { get; }` [#](#property-rawvalue)

[OfficeExifNormalization.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Core/Raster/OfficeExifNormalization.cs#L13)

Original decoded date string.

`public string FieldName { get; internal set; }` [#](#property-fieldname)

[OfficeExifNormalization.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Core/Raster/OfficeExifNormalization.cs#L15)

Originating timestamp tag name when returned by image inspection.

`public string? Source { get; internal set; }` [#](#property-source)

[OfficeExifNormalization.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Core/Raster/OfficeExifNormalization.cs#L17)

Originating profile location when returned by image inspection.

`public string? RawOffset { get; }` [#](#property-rawoffset)

[OfficeExifNormalization.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Core/Raster/OfficeExifNormalization.cs#L19)

Original offset string, or null when absent.

`public string? RawSubseconds { get; }` [#](#property-rawsubseconds)

[OfficeExifNormalization.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Core/Raster/OfficeExifNormalization.cs#L21)

Original fractional-second string, or null when absent.

`public DateTime? LocalDateTime { get; }` [#](#property-localdatetime)

[OfficeExifNormalization.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Core/Raster/OfficeExifNormalization.cs#L23)

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

`public DateTimeOffset? Instant { get; }` [#](#property-instant)

[OfficeExifNormalization.cs:25](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Core/Raster/OfficeExifNormalization.cs#L25)

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

`public bool HasKnownTimezone { get; }` [#](#property-hasknowntimezone)

[OfficeExifNormalization.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Core/Raster/OfficeExifNormalization.cs#L27)

Whether the source supplies a valid explicit timezone offset.

`public bool IsValid { get; }` [#](#property-isvalid)

[OfficeExifNormalization.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Core/Raster/OfficeExifNormalization.cs#L29)

Whether every supplied component is valid.

`public string? Issue { get; }` [#](#property-issue)

[OfficeExifNormalization.cs:31](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Core/Raster/OfficeExifNormalization.cs#L31)

Stable parse/precision diagnostic, or null.

`public bool IsDateUnknown { get; }` [#](#property-isdateunknown)

[OfficeExifNormalization.cs:33](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Core/Raster/OfficeExifNormalization.cs#L33)

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

<!-- PowerForge markdown artifact sha256:EC092117D0DBEEDDF71392F0B4432CC64B447B1390A8D377AE1E44BD2F8755DE -->
