This package is still in development and not stable at this time! Features and functionalities might not work as expected.

backpy backpy backpy
/
  • Getting Started
    • Installation
    • First Steps
  • Basic Concepts
  • Workflows
    • Automation
    • Common
    • Maintenance
    • Setup
      • Creating a Remote
      • Creating a File Backup Space
  • Troubleshooting
  • Reference
    • API Reference
      • CLI (backpy.cli)
        • Colors (backpy.cli.colors)
        • Elements (backpy.cli.elements)
      • Core (backpy.core)
        • Backup (backpy.core.backup)
        • Config (backpy.core.config)
        • Remote (backpy.core.remote)
        • Space (backpy.core.space)
        • Utils (backpy.core.utils)
    • CLI Reference
      • backup
      • config
      • remote
      • schedule
      • space
  • About backpy
    • Roadmap
    • License
    • Acknowledgements
    • Usage of Generative AI
    • Changelog

On this page

  • TimeObject
    • fromisoformat()
    • get_datetime()
    • isoformat()
    • localnow()
    • printformat()
    • utcnow()
tgross03/backpy 0 0
Edit this page
  1. backpy /
  2. Reference /
  3. API Reference /
  4. Core (backpy.core) /
  5. Utils (backpy.core.utils) /
  6. TimeObject

TimeObject¶

class backpy.core.utils.TimeObject(dt)¶

Bases: object

Methods Summary

fromisoformat(string)

get_datetime()

isoformat()

localnow()

printformat()

utcnow()

Methods Documentation

Parameters:

dt (datetime)

classmethod fromisoformat(string)¶
Parameters:

string (str)

Return type:

TimeObject

get_datetime()¶
Return type:

datetime

isoformat()¶
Return type:

str

classmethod localnow()¶
Return type:

TimeObject

printformat()¶
Return type:

str

classmethod utcnow()¶
Return type:

TimeObject

Previous
calculate_sha256sum
Next
CLI Reference

© 2025, Tom Groß

Made with Sphinx and Shibuya theme.