Source code for reemote.facts.server.get_date

# Copyright (c) 2025 Kim Jarvis TPF Software Services S.A. kim.jarvis@tpfsystems.com 
# This software is licensed under the MIT License. See the LICENSE file for details.
#

[docs] class Get_Date: """ Returns the current datetime on the server. **Examples:** .. code:: python yield Get_Date() """ def execute(self): from reemote.operations.server.shell import Shell ISO_DATE_FORMAT = "%Y-%m-%dT%H:%M:%S%z" r0 = yield Shell(f"date +'{ISO_DATE_FORMAT}'")