Skip to content

Time Layout Renderer

Rolf Kristensen edited this page Feb 8, 2023 · 9 revisions

The time in a 24-hour, sortable format HH:mm:ss.mmmm.

Platforms Supported: All

See also ${processtime}, ${date}, ${longdate}, ${shortdate}

Configuration Syntax

${time:universalTime=Boolean:invariant=Boolean}

Parameters

Rendering Options

  • universalTime - Indicates whether to output UTC time instead of local time. Boolean Default: False
  • invariant - Indicates whether to output in invariant time format, and not lookup of current cultureinfo. Boolean Default: true (Before NLog 5.0 the default was false)

    Introduced with NLog 4.5.2

  • culture - Culture used for time format. Default: InvariantCulture

    Introduced with NLog 5.0

Clone this wiki locally