Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.11/site-packages/aniso8601/resolution.py: 90%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

10 statements  

1# -*- coding: utf-8 -*- 

2 

3# Copyright (c) 2026, Brandon Nielsen 

4# SPDX-License-Identifier: BSD-3-Clause 

5 

6from aniso8601 import compat 

7 

8 

9class DateResolution(object): 

10 Year, Month, Week, Weekday, Day, Ordinal = list(compat.range(6)) 

11 

12 

13class DurationResolution(object): 

14 Years, Months, Weeks, Days, Hours, Minutes, Seconds = list(compat.range(7)) 

15 

16 

17class IntervalResolution(object): 

18 Year, Month, Week, Weekday, Day, Ordinal, Hours, Minutes, Seconds = list( 

19 compat.range(9) 

20 ) 

21 

22 

23class TimeResolution(object): 

24 Seconds, Minutes, Hours = list(compat.range(3))