datetimerange
latest

Table of Contents

  • 1. DateTimeRange
  • 2. Installation
  • 3. Dependencies
  • 4. Examples
  • 5. Reference
  • 6. Changelog
  • 7. Sponsors
  • 8. Indices and tables
  • 9. Links
datetimerange
  • Docs »
  • Welcome to DateTimeRange’s documentation!
  • Edit on GitHub

Welcome to DateTimeRange’s documentation!¶



Table of Contents

  • 1. DateTimeRange
    • 1.1. Summary
  • 2. Installation
  • 3. Dependencies
  • 4. Examples
    • 4.1. Create a DateTimeRange instance from start and end datetime
    • 4.2. Compare time ranges
    • 4.3. Move the time range
    • 4.4. Change string conversion format
    • 4.5. Add elapsed time when conversion to string
    • 4.6. Change separator of the converted string
    • 4.7. Get start time as datetime.datetime
    • 4.8. Get start time as string (formatted with start_time_format)
    • 4.9. Get end time as datetime.datetime
    • 4.10. Get end time as string (formatted with end_time_format)
    • 4.11. Get datetime.timedelta (from start_datetime to the end_datetime)
    • 4.12. Get timedelta as seconds (from start_datetime to the end_datetime)
    • 4.13. Get an iterator
    • 4.14. Set start time
    • 4.15. Set end time
    • 4.16. Set time range (set both start and end time)
    • 4.17. Test whether the time range is set
    • 4.18. Validate time inversion
    • 4.19. Test whether the time range is valid
    • 4.20. Test whether a value within the time range
    • 4.21. Test whether a value intersect the time range
    • 4.22. Make an intersected time range
    • 4.23. Make an subtracted time range
    • 4.24. Make an encompassed time range
    • 4.25. Truncate time range
  • 5. Reference
    • 5.1. DateTimeRange class
  • 6. Changelog
  • 7. Sponsors
  • 8. Indices and tables
  • 9. Links

Indices and tables¶

  • Index

Next

© Copyright Copyright 2016, Tsuyoshi Hombashi Revision 17faff9d.

Built with Sphinx using a theme provided by Read the Docs.
Read the Docs v: latest
Versions
latest
stable
Downloads
pdf
html
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.