.. _prop-system-time-wday:
.. _properties.system-time.wday:

$wday
=====

.. index::
   single: properties; $wday
   single: $wday

.. summary-start

Returns the current weekday number as defined by ``gmtime()``.

.. summary-end

This property belongs to the **Time-Related System Properties** group.

:Name: $wday
:Category: Time-Related System Properties
:Type: integer

Description
-----------
The current week day as defined by ``gmtime()``. 0=Sunday, ..., 6=Saturday.

Usage
-----
.. _properties.system-time.wday-usage:

.. code-block:: rsyslog

   template(name="example" type="list") {
       property(name="$wday")
   }

See also
--------
See :doc:`../../configuration/properties` for the category overview.
