{
    "content": [
        {
            "type": "text",
            "text": "# org.freedesktop.timedate1 (man)\n\n## NAME\n\norg.freedesktop.timedate1 - The D-Bus interface of systemd-timedated\n\n## Sections\n\n- **NAME**\n- **INTRODUCTION**\n- **THE D-BUS API** (3 subsections)\n- **EXAMPLES** (1 subsections)\n- **VERSIONING**\n- **SEE ALSO**\n- **NOTES**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "org.freedesktop.timedate1",
        "section": "",
        "mode": "man",
        "summary": "org.freedesktop.timedate1 - The D-Bus interface of systemd-timedated",
        "synopsis": null,
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [
            "$ gdbus introspect --system \\",
            "--dest org.freedesktop.timedate1 \\",
            "--object-path /org/freedesktop/timedate1"
        ],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "INTRODUCTION",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "THE D-BUS API",
                "lines": 48,
                "subsections": [
                    {
                        "name": "Methods",
                        "lines": 26
                    },
                    {
                        "name": "Properties",
                        "lines": 16
                    },
                    {
                        "name": "Security",
                        "lines": 8
                    }
                ]
            },
            {
                "name": "EXAMPLES",
                "lines": 1,
                "subsections": [
                    {
                        "name": "Example 1. Introspect org.freedesktop.timedate1 on the bus",
                        "lines": 5
                    }
                ]
            },
            {
                "name": "VERSIONING",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "NOTES",
                "lines": 12,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "org.freedesktop.timedate1 - The D-Bus interface of systemd-timedated\n",
                "subsections": []
            },
            "INTRODUCTION": {
                "content": "systemd-timedated.service(8) is a system service that can be used to control the system time\nand related settings. This page describes the D-Bus interface.\n",
                "subsections": []
            },
            "THE D-BUS API": {
                "content": "The service exposes the following interfaces on the bus:\n\nnode /org/freedesktop/timedate1 {\ninterface org.freedesktop.timedate1 {\nmethods:\nSetTime(in  x usecutc,\nin  b relative,\nin  b interactive);\nSetTimezone(in  s timezone,\nin  b interactive);\nSetLocalRTC(in  b localrtc,\nin  b fixsystem,\nin  b interactive);\nSetNTP(in  b usentp,\nin  b interactive);\nListTimezones(out as timezones);\nproperties:\nreadonly s Timezone = '...';\nreadonly b LocalRTC = ...;\n@org.freedesktop.DBus.Property.EmitsChangedSignal(\"false\")\nreadonly b CanNTP = ...;\nreadonly b NTP = ...;\n@org.freedesktop.DBus.Property.EmitsChangedSignal(\"false\")\nreadonly b NTPSynchronized = ...;\n@org.freedesktop.DBus.Property.EmitsChangedSignal(\"false\")\nreadonly t TimeUSec = ...;\n@org.freedesktop.DBus.Property.EmitsChangedSignal(\"false\")\nreadonly t RTCTimeUSec = ...;\n};\ninterface org.freedesktop.DBus.Peer { ... };\ninterface org.freedesktop.DBus.Introspectable { ... };\ninterface org.freedesktop.DBus.Properties { ... };\n};\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",
                "subsections": [
                    {
                        "name": "Methods",
                        "content": "Use SetTime() to change the system clock. Pass a value of microseconds since the UNIX epoch\n(1 Jan 1970 UTC). If relative is true, the passed usec value will be added to the current\nsystem time. If it is false, the current system time will be set to the passed usec value. If\nthe system time is set with this method, the RTC will be updated as well.\n\nUse SetTimezone() to set the system timezone. Pass a value like \"Europe/Berlin\" to set the\ntimezone. Valid timezones are listed in /usr/share/zoneinfo/zone.tab. If the RTC is\nconfigured to be maintained in local time, it will be updated accordingly.\n\nUse SetLocalRTC() to control whether the RTC is in local time or UTC. It is strongly\nrecommended to maintain the RTC in UTC. However, some OSes (Windows) maintain the RTC in\nlocal time, which might make it necessary to enable this feature. Note that this might create\nvarious problems as daylight changes could be missed. If fixsystem is \"true\", the time from\nthe RTC is read again and the system clock is adjusted according to the new setting. If\nfixsystem is \"false\", the system time is written to the RTC taking the new setting into\naccount. Use fixsystem=true in installers and livecds where the RTC is probably more\nreliable than the system time. Use fixsystem=false in configuration UIs that are run during\nnormal operation and where the system clock is probably more reliable than the RTC.\n\nUse SetNTP() to control whether the system clock is synchronized with the network using\nsystemd-timesyncd. This will enable and start or disable and stop the chosen time\nsynchronization service.\n\nListTimezones() returns a list of time zones known on the local system as an array of names\n(\"[\"Africa/Abidjan\", \"Africa/Accra\", ..., \"UTC\"]\").\n"
                    },
                    {
                        "name": "Properties",
                        "content": "Timezone shows the currently configured time zone.  LocalRTC shows whether the RTC is\nconfigured to use UTC (false), or the local time zone (true).  CanNTP shows whether a service\nto perform time synchronization over the network is available, and NTP shows whether such a\nservice is enabled.\n\nNTPSynchronized shows whether the kernel reports the time as synchronized (c.f.\nadjtimex(3)).  TimeUSec and RTCTimeUSec show the current time on the system and in the RTC.\nThe purpose of those three properties is to allow remote clients to access this information\nover D-Bus. Local clients can access the information directly.\n\nWhenever the Timezone and LocalRTC settings are changed via the daemon, PropertyChanged\nsignals are sent out to which clients can subscribe.\n\nNote that this service will not inform you about system time changes. Use timerfd(3) with\nCLOCKREALTIME and TFDTIMERCANCELONSET for that.\n"
                    },
                    {
                        "name": "Security",
                        "content": "The interactive boolean parameters can be used to control whether polkit[1] should\ninteractively ask the user for authentication credentials if required.\n\nThe polkit action for SetTimezone() is org.freedesktop.timedate1.set-timezone. For\nSetLocalRTC() it is org.freedesktop.timedate1.set-local-rtc, for SetTime() it is\norg.freedesktop.timedate1.set-time and for SetNTP() it is org.freedesktop.timedate1.set-ntp.\nListTimezones() does not require any privileges.\n"
                    }
                ]
            },
            "EXAMPLES": {
                "content": "",
                "subsections": [
                    {
                        "name": "Example 1. Introspect org.freedesktop.timedate1 on the bus",
                        "content": "$ gdbus introspect --system \\\n--dest org.freedesktop.timedate1 \\\n--object-path /org/freedesktop/timedate1\n\n"
                    }
                ]
            },
            "VERSIONING": {
                "content": "These D-Bus interfaces follow the usual interface versioning guidelines[2].\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "More information on how the system clock and RTC interact[3]\n",
                "subsections": []
            },
            "NOTES": {
                "content": "1. polkit\nhttps://www.freedesktop.org/software/polkit/docs/latest/\n\n2. the usual interface versioning guidelines\nhttp://0pointer.de/blog/projects/versioning-dbus.html\n\n3. More information on how the system clock and RTC interact\nhttps://lists.freedesktop.org/archives/systemd-devel/2011-May/002526.html\n\n\n\nsystemd 249                                                             ORG.FREEDESKTOP.TIMEDATE1(5)",
                "subsections": []
            }
        }
    }
}