Repository: amitgaru2/nepali-datetime (language: python)

Issue:
updates



Discussion / hints:

Fix patch:
diff --git a/docs/doctrees/environment.pickle b/docs/doctrees/environment.pickle
index c107a20..226ece0 100644
Binary files a/docs/doctrees/environment.pickle and b/docs/doctrees/environment.pickle differ
diff --git a/docs/doctrees/index.doctree b/docs/doctrees/index.doctree
index c83482e..ac851ef 100644
Binary files a/docs/doctrees/index.doctree and b/docs/doctrees/index.doctree differ
diff --git a/docs/html/_sources/index.rst.txt b/docs/html/_sources/index.rst.txt
index fe26da3..cc19b03 100644
--- a/docs/html/_sources/index.rst.txt
+++ b/docs/html/_sources/index.rst.txt
@@ -713,9 +713,16 @@ Directives   Meaning                          Example                  Notes
              or -HHMM (empty string if the    +1030                         
              object is naive).                                             
 
-``%Z``       Time zone name (empty string     (empty), UTC, EST, CST        
+``%Z``       Time zone name (empty string     (empty), UTC, EST, CST
              if the object is naive).                                      
 
+``%U``       Week number of the year (Sunday  00, 01, ..., 53            \(7)
+             as the first day of the week)
+             as a zero padded decimal number.
+             All days in a new year preceding
+             the first Sunday are considered
+             to be in week 0.
+
 ===========  ================================ ======================== =======
 
                         
diff --git a/docs/html/index.html b/docs/html/index.html
index 33131ca..3d0d2e1 100644
--- a/docs/html/index.html
+++ b/docs/html/index.html
@@ -900,6 +900,16 @@ <h2><a class="reference internal" href="#nepali_datetime.datetime" title="nepali
 <td><p>(empty), UTC, EST, CST</p></td>
 <td></td>
 </tr>
+<tr class="row-odd"><td><p><code class="docutils literal notranslate"><span class="pre">%U</span></code></p></td>
+<td><p>Week number of the year (Sunday
+as the first day of the week)
+as a zero padded decimal number.
+All days in a new year preceding
+the first Sunday are considered
+to be in week 0.</p></td>
+<td><p>00, 01, …, 53</p></td>
+<td><p>(7)</p></td>
+</tr>
 </tbody>
 </table>
 <p>Notes:</p>
diff --git a/docs/html/searchindex.js b/docs/html/searchindex.js
index 898fa60..cbc1c86 100644
--- a/docs/html/searchindex.js
+++ b/docs/html/searchindex.js
@@ -1,1 +1,1 @@
-Search.setIndex({"docnames": ["index"], "filenames": ["index.rst"], "titles": ["<code class=\"xref py py-mod docutils literal notranslate\"><span class=\"pre\">nepali_datetime</span></code> \u2014 Bikram Sambat Date and Nepal Time types"], "terms": {"The": 0, "modul": 0, "i": 0, "highli": 0, "motiv": 0, "from": 0, "python3": 0, "": 0, "suppli": 0, "class": 0, "manipul": 0, "both": 0, "simpl": 0, "complex": 0, "wai": 0, "export": 0, "follow": 0, "constant": 0, "minyear": 0, "smallest": 0, "year": 0, "number": 0, "allow": 0, "1975": 0, "maxyear": 0, "largest": 0, "2100": 0, "nepal_time_utc_offset": 0, "utc": 0, "offset": 0, "05": 0, "45": 0, "an": 0, "ideal": 0, "naiv": 0, "assum": 0, "current": 0, "gregorian": 0, "calendar": 0, "alwai": 0, "wa": 0, "effect": 0, "attribut": 0, "month": 0, "dai": 0, "utc0545": 0, "A": 0, "tzinfo": 0, "subclass": 0, "timezon": 0, "combin": 0, "hour": 0, "minut": 0, "second": 0, "microsecond": 0, "repres": 0, "b": 0, "baishak": 0, "1": 0, "call": 0, "2": 0, "so": 0, "all": 0, "argument": 0, "ar": 0, "requir": 0, "mai": 0, "integ": 0, "rang": 0, "12": 0, "given": 0, "If": 0, "outsid": 0, "those": 0, "valueerror": 0, "rais": 0, "other": 0, "constructor": 0, "method": 0, "classmethod": 0, "todai": 0, "return": 0, "from_datetime_d": 0, "convert": 0, "nepalidatetim": 0, "exampl": 0, "import": 0, "dt": 0, "2018": 0, "11": 0, "7": 0, "2075": 0, "21": 0, "min": 0, "earliest": 0, "represent": 0, "max": 0, "latest": 0, "maxyear_last_months_last_dai": 0, "resolut": 0, "possibl": 0, "differ": 0, "between": 0, "non": 0, "equal": 0, "timedelta": 0, "instanc": 0, "read": 0, "onli": 0, "inclus": 0, "support": 0, "oper": 0, "result": 0, "date2": 0, "date1": 0, "remov": 0, "comput": 0, "3": 0, "consid": 0, "less": 0, "than": 0, "when": 0, "preced": 0, "4": 0, "note": 0, "move": 0, "forward": 0, "0": 0, "backward": 0, "afterward": 0, "ignor": 0, "overflowerror": 0, "would": 0, "smaller": 0, "larger": 0, "thi": 0, "isn": 0, "t": 0, "quit": 0, "equival": 0, "becaus": 0, "isol": 0, "can": 0, "overflow": 0, "case": 0, "where": 0, "doe": 0, "exact": 0, "cannot": 0, "after": 0, "In": 0, "word": 0, "toordin": 0, "order": 0, "stop": 0, "comparison": 0, "fall": 0, "back": 0, "default": 0, "scheme": 0, "compar": 0, "address": 0, "normal": 0, "typeerror": 0, "comparand": 0, "also": 0, "howev": 0, "notimpl": 0, "instead": 0, "ha": 0, "timetupl": 0, "hook": 0, "give": 0, "kind": 0, "chanc": 0, "implement": 0, "mix": 0, "unless": 0, "latter": 0, "fals": 0, "true": 0, "respect": 0, "replac": 0, "same": 0, "valu": 0, "except": 0, "paramet": 0, "new": 0, "whichev": 0, "keyword": 0, "specifi": 0, "For": 0, "d": 0, "2002": 0, "30": 0, "26": 0, "struct_tim": 0, "localtim": 0, "dst": 0, "flag": 0, "weekdai": 0, "ydai": 0, "within": 0, "start": 0, "1st": 0, "week": 0, "sundai": 0, "saturdai": 0, "6": 0, "to_datetime_d": 0, "ndt": 0, "isoformat": 0, "string": 0, "iso": 0, "8601": 0, "format": 0, "yyyi": 0, "mm": 0, "dd": 0, "04": 0, "__str__": 0, "str": 0, "justifi": 0, "dispali": 0, "highlight": 0, "overrid": 0, "wider": 0, "view": 0, "2051": 0, "10": 0, "magh": 0, "sun": 0, "mon": 0, "tue": 0, "wed": 0, "thu": 0, "fri": 0, "sat": 0, "5": 0, "8": 0, "9": 0, "13": 0, "14": 0, "15": 0, "16": 0, "17": 0, "18": 0, "19": 0, "20": 0, "22": 0, "23": 0, "24": 0, "25": 0, "27": 0, "28": 0, "29": 0, "ctime": 0, "cha": 0, "00": 0, "mktime": 0, "platform": 0, "nativ": 0, "c": 0, "function": 0, "which": 0, "invok": 0, "conform": 0, "standard": 0, "control": 0, "explicit": 0, "code": 0, "refer": 0, "see": 0, "complet": 0, "list": 0, "direct": 0, "__format__": 0, "make": 0, "us": 0, "count": 0, "event": 0, "2050": 0, "fromtimestamp": 0, "my_birthdai": 0, "time_to_birthdai": 0, "ab": 0, "303": 0, "work": 0, "fromordin": 0, "10000": 0, "10000th": 0, "m": 0, "y": 0, "02": 0, "tuesdai": 0, "bhadau": 0, "singl": 0, "contain": 0, "inform": 0, "like": 0, "extend": 0, "exactli": 0, "3600": 0, "everi": 0, "none": 0, "remain": 0, "60": 0, "1000000": 0, "now": 0, "local": 0, "option": 0, "tz": 0, "more": 0, "precis": 0, "gotten": 0, "go": 0, "through": 0, "timestamp": 0, "gettimeofdai": 0, "explicitli": 0, "set": 0, "restrict": 0, "utcnow": 0, "date_str": 0, "correspond": 0, "pars": 0, "accord": 0, "tupl": 0, "59": 0, "999999": 0, "pass": 0, "datetime2": 0, "datetime1": 0, "durat": 0, "input": 0, "zone": 0, "adjust": 0, "done": 0, "even": 0, "awar": 0, "As": 0, "addit": 0, "subtract": 0, "defin": 0, "operand": 0, "one": 0, "have": 0, "No": 0, "act": 0, "were": 0, "first": 0, "utcoffset": 0, "never": 0, "attempt": 0, "common": 0, "base": 0, "obtain": 0, "self": 0, "timetz": 0, "creat": 0, "convers": 0, "data": 0, "tzname": 0, "els": 0, "doesn": 0, "tm_isdst": 0, "zero": 0, "isoweekdai": 0, "sep": 0, "2005": 0, "2007": 0, "43": 0, "79043": 0, "gmt": 0, "79060": 0, "06": 0, "h": 0, "2006": 0, "p": 0, "falgun": 0, "30pm": 0, "under": 0, "broadli": 0, "speak": 0, "fmt": 0, "although": 0, "should": 0, "thei": 0, "re": 0, "anywai": 0, "substitut": 0, "them": 0, "1989": 0, "version": 0, "1999": 0, "ad": 0, "mean": 0, "abbrevi": 0, "name": 0, "full": 0, "mondai": 0, "g": 0, "nepali": 0, "unicod": 0, "\u0906\u0907\u0924\u092c": 0, "\u0930": 0, "\u0938": 0, "\u092e\u092c": 0, "\u0936\u0928": 0, "\u092c": 0, "w": 0, "decim": 0, "pad": 0, "01": 0, "32": 0, "\u0966\u0967": 0, "\u0966\u0968": 0, "\u0969\u0968": 0, "bai": 0, "je": 0, "baishakh": 0, "jestha": 0, "chaitra": 0, "n": 0, "\u0935": 0, "\u0936": 0, "\u0916": 0, "\u091c": 0, "\u0937": 0, "\u0920": 0, "\u0905\u0938": 0, "\u0935\u0923": 0, "\u092d\u0926": 0, "\u0906\u0936": 0, "\u0928": 0, "\u0915": 0, "\u0924": 0, "\u092e": 0, "\u092a": 0, "\u0918": 0, "\u092b": 0, "\u0932": 0, "\u0917": 0, "\u0923": 0, "\u091a": 0, "\u0967\u0968": 0, "without": 0, "centuri": 0, "99": 0, "k": 0, "\u0966\u0966": 0, "\u096f\u096f": 0, "1976": 0, "2077": 0, "2078": 0, "2099": 0, "\u0967\u096f\u096d\u096b": 0, "\u0967\u096f\u096d\u096c": 0, "\u0968\u0966\u096f\u096f": 0, "\u0968\u0967\u0966\u0966": 0, "clock": 0, "\u0968\u0969": 0, "either": 0, "am": 0, "pm": 0, "l": 0, "\u096b\u096f": 0, "f": 0, "left": 0, "000000": 0, "000001": 0, "z": 0, "form": 0, "hhmm": 0, "empti": 0, "0000": 0, "0400": 0, "1030": 0, "est": 0, "cst": 0, "depend": 0, "care": 0, "taken": 0, "assumpt": 0, "about": 0, "output": 0, "field": 0, "vari": 0, "versu": 0, "charact": 0, "9999": 0, "1000": 0, "must": 0, "fill": 0, "digit": 0, "width": 0, "affect": 0, "unlik": 0, "leap": 0, "accept": 0, "six": 0, "right": 0, "extens": 0, "separ": 0, "therefor": 0, "transform": 0, "hh": 0, "0330": 0, "otherwis": 0, "provid": 0, "produc": 0, "90": 0, "shall": 0, "1990": 0, "89": 0, "2000": 0, "2089": 0, "lead": 0, "permit": 0}, "objects": {"": [[0, 0, 0, "-", "nepali_datetime"]], "nepali_datetime": [[0, 1, 1, "", "MAXYEAR"], [0, 1, 1, "", "MINYEAR"], [0, 1, 1, "", "NEPAL_TIME_UTC_OFFSET"], [0, 2, 1, "", "UTC0545"], [0, 2, 1, "", "date"], [0, 2, 1, "", "datetime"]], "nepali_datetime.date": [[0, 3, 1, "", "__format__"], [0, 3, 1, "", "__str__"], [0, 3, 1, "", "calendar"], [0, 3, 1, "", "ctime"], [0, 4, 1, "", "day"], [0, 3, 1, "", "from_datetime_date"], [0, 3, 1, "", "isoformat"], [0, 4, 1, "", "max"], [0, 4, 1, "", "min"], [0, 4, 1, "", "month"], [0, 3, 1, "", "replace"], [0, 4, 1, "", "resolution"], [0, 3, 1, "", "strftime"], [0, 3, 1, "", "timetuple"], [0, 3, 1, "", "to_datetime_date"], [0, 3, 1, "", "today"], [0, 3, 1, "", "weekday"], [0, 4, 1, "", "year"]], "nepali_datetime.datetime": [[0, 3, 1, "", "__format__"], [0, 3, 1, "", "__str__"], [0, 3, 1, "", "date"], [0, 4, 1, "", "day"], [0, 4, 1, "", "hour"], [0, 3, 1, "", "isoformat"], [0, 4, 1, "", "max"], [0, 4, 1, "", "microsecond"], [0, 4, 1, "", "min"], [0, 4, 1, "", "minute"], [0, 4, 1, "", "month"], [0, 3, 1, "", "now"], [0, 3, 1, "", "replace"], [0, 4, 1, "", "resolution"], [0, 4, 1, "", "second"], [0, 3, 1, "", "strftime"], [0, 3, 1, "", "strptime"], [0, 3, 1, "", "time"], [0, 3, 1, "", "timetuple"], [0, 3, 1, "", "timetz"], [0, 3, 1, "", "today"], [0, 4, 1, "", "tzinfo"], [0, 3, 1, "", "tzname"], [0, 3, 1, "", "utcnow"], [0, 3, 1, "", "weekday"], [0, 4, 1, "", "year"]]}, "objtypes": {"0": "py:module", "1": "py:data", "2": "py:class", "3": "py:method", "4": "py:attribute"}, "objnames": {"0": ["py", "module", "Python module"], "1": ["py", "data", "Python data"], "2": ["py", "class", "Python class"], "3": ["py", "method", "Python method"], "4": ["py", "attribute", "Python attribute"]}, "titleterms": {"nepali_datetim": 0, "bikram": 0, "sambat": 0, "date": 0, "nepal": 0, "time": 0, "type": 0, "avail": 0, "object": 0, "datetim": 0, "strftime": 0, "strptime": 0, "behavior": 0}, "envversion": {"sphinx.domains.c": 3, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 9, "sphinx.domains.index": 1, "sphinx.domains.javascript": 3, "sphinx.domains.math": 2, "sphinx.domains.python": 4, "sphinx.domains.rst": 2, "sphinx.domains.std": 2, "sphinx": 60}, "alltitles": {"nepali_datetime \u2014 Bikram Sambat Date and Nepal Time types": [[0, "module-nepali_datetime"]], "Available Types": [[0, "available-types"]], "nepali_datetime.date Objects": [[0, "nepali-datetime-date-objects"]], "nepali_datetime.datetime Objects": [[0, "nepali-datetime-datetime-objects"]], "strftime() and strptime() Behavior": [[0, "strftime-and-strptime-behavior"]]}, "indexentries": {"maxyear (in module nepali_datetime)": [[0, "nepali_datetime.MAXYEAR"]], "minyear (in module nepali_datetime)": [[0, "nepali_datetime.MINYEAR"]], "nepal_time_utc_offset (in module nepali_datetime)": [[0, "nepali_datetime.NEPAL_TIME_UTC_OFFSET"]], "utc0545 (class in nepali_datetime)": [[0, "nepali_datetime.UTC0545"]], "__format__() (nepali_datetime.date method)": [[0, "nepali_datetime.date.__format__"]], "__format__() (nepali_datetime.datetime method)": [[0, "nepali_datetime.datetime.__format__"]], "__str__() (nepali_datetime.date method)": [[0, "nepali_datetime.date.__str__"]], "__str__() (nepali_datetime.datetime method)": [[0, "nepali_datetime.datetime.__str__"]], "calendar() (nepali_datetime.date method)": [[0, "nepali_datetime.date.calendar"]], "ctime() (nepali_datetime.date method)": [[0, "nepali_datetime.date.ctime"]], "date (class in nepali_datetime)": [[0, "nepali_datetime.date"]], "date() (nepali_datetime.datetime method)": [[0, "nepali_datetime.datetime.date"]], "datetime (class in nepali_datetime)": [[0, "nepali_datetime.datetime"]], "day (nepali_datetime.date attribute)": [[0, "nepali_datetime.date.day"]], "day (nepali_datetime.datetime attribute)": [[0, "nepali_datetime.datetime.day"]], "from_datetime_date() (nepali_datetime.date class method)": [[0, "nepali_datetime.date.from_datetime_date"]], "hour (nepali_datetime.datetime attribute)": [[0, "nepali_datetime.datetime.hour"]], "isoformat() (nepali_datetime.date method)": [[0, "nepali_datetime.date.isoformat"]], "isoformat() (nepali_datetime.datetime method)": [[0, "nepali_datetime.datetime.isoformat"]], "max (nepali_datetime.date attribute)": [[0, "nepali_datetime.date.max"]], "max (nepali_datetime.datetime attribute)": [[0, "nepali_datetime.datetime.max"]], "microsecond (nepali_datetime.datetime attribute)": [[0, "nepali_datetime.datetime.microsecond"]], "min (nepali_datetime.date attribute)": [[0, "nepali_datetime.date.min"]], "min (nepali_datetime.datetime attribute)": [[0, "nepali_datetime.datetime.min"]], "minute (nepali_datetime.datetime attribute)": [[0, "nepali_datetime.datetime.minute"]], "module": [[0, "module-nepali_datetime"]], "month (nepali_datetime.date attribute)": [[0, "nepali_datetime.date.month"]], "month (nepali_datetime.datetime attribute)": [[0, "nepali_datetime.datetime.month"]], "nepali_datetime": [[0, "module-nepali_datetime"]], "now() (nepali_datetime.datetime class method)": [[0, "nepali_datetime.datetime.now"]], "replace() (nepali_datetime.date method)": [[0, "nepali_datetime.date.replace"]], "replace() (nepali_datetime.datetime method)": [[0, "nepali_datetime.datetime.replace"]], "resolution (nepali_datetime.date attribute)": [[0, "nepali_datetime.date.resolution"]], "resolution (nepali_datetime.datetime attribute)": [[0, "nepali_datetime.datetime.resolution"]], "second (nepali_datetime.datetime attribute)": [[0, "nepali_datetime.datetime.second"]], "strftime() (nepali_datetime.date method)": [[0, "nepali_datetime.date.strftime"]], "strftime() (nepali_datetime.datetime method)": [[0, "nepali_datetime.datetime.strftime"]], "strptime() (nepali_datetime.datetime class method)": [[0, "nepali_datetime.datetime.strptime"]], "time() (nepali_datetime.datetime method)": [[0, "nepali_datetime.datetime.time"]], "timetuple() (nepali_datetime.date method)": [[0, "nepali_datetime.date.timetuple"]], "timetuple() (nepali_datetime.datetime method)": [[0, "nepali_datetime.datetime.timetuple"]], "timetz() (nepali_datetime.datetime method)": [[0, "nepali_datetime.datetime.timetz"]], "to_datetime_date() (nepali_datetime.date method)": [[0, "nepali_datetime.date.to_datetime_date"]], "today() (nepali_datetime.date class method)": [[0, "nepali_datetime.date.today"]], "today() (nepali_datetime.datetime class method)": [[0, "nepali_datetime.datetime.today"]], "tzinfo (nepali_datetime.datetime attribute)": [[0, "nepali_datetime.datetime.tzinfo"]], "tzname() (nepali_datetime.datetime method)": [[0, "nepali_datetime.datetime.tzname"]], "utcnow() (nepali_datetime.datetime class method)": [[0, "nepali_datetime.datetime.utcnow"]], "weekday() (nepali_datetime.date method)": [[0, "nepali_datetime.date.weekday"]], "weekday() (nepali_datetime.datetime method)": [[0, "nepali_datetime.datetime.weekday"]], "year (nepali_datetime.date attribute)": [[0, "nepali_datetime.date.year"]], "year (nepali_datetime.datetime attribute)": [[0, "nepali_datetime.datetime.year"]]}})
\ No newline at end of file
+Search.setIndex({"docnames": ["index"], "filenames": ["index.rst"], "titles": ["<code class=\"xref py py-mod docutils literal notranslate\"><span class=\"pre\">nepali_datetime</span></code> \u2014 Bikram Sambat Date and Nepal Time types"], "terms": {"The": 0, "modul": 0, "i": 0, "highli": 0, "motiv": 0, "from": 0, "python3": 0, "": 0, "suppli": 0, "class": 0, "manipul": 0, "both": 0, "simpl": 0, "complex": 0, "wai": 0, "export": 0, "follow": 0, "constant": 0, "minyear": 0, "smallest": 0, "year": 0, "number": 0, "allow": 0, "1975": 0, "maxyear": 0, "largest": 0, "2100": 0, "nepal_time_utc_offset": 0, "utc": 0, "offset": 0, "05": 0, "45": 0, "an": 0, "ideal": 0, "naiv": 0, "assum": 0, "current": 0, "gregorian": 0, "calendar": 0, "alwai": 0, "wa": 0, "effect": 0, "attribut": 0, "month": 0, "dai": 0, "utc0545": 0, "A": 0, "tzinfo": 0, "subclass": 0, "timezon": 0, "combin": 0, "hour": 0, "minut": 0, "second": 0, "microsecond": 0, "repres": 0, "b": 0, "baishak": 0, "1": 0, "call": 0, "2": 0, "so": 0, "all": 0, "argument": 0, "ar": 0, "requir": 0, "mai": 0, "integ": 0, "rang": 0, "12": 0, "given": 0, "If": 0, "outsid": 0, "those": 0, "valueerror": 0, "rais": 0, "other": 0, "constructor": 0, "method": 0, "classmethod": 0, "todai": 0, "return": 0, "from_datetime_d": 0, "convert": 0, "nepalidatetim": 0, "exampl": 0, "import": 0, "dt": 0, "2018": 0, "11": 0, "7": 0, "2075": 0, "21": 0, "min": 0, "earliest": 0, "represent": 0, "max": 0, "latest": 0, "maxyear_last_months_last_dai": 0, "resolut": 0, "possibl": 0, "differ": 0, "between": 0, "non": 0, "equal": 0, "timedelta": 0, "instanc": 0, "read": 0, "onli": 0, "inclus": 0, "support": 0, "oper": 0, "result": 0, "date2": 0, "date1": 0, "remov": 0, "comput": 0, "3": 0, "consid": 0, "less": 0, "than": 0, "when": 0, "preced": 0, "4": 0, "note": 0, "move": 0, "forward": 0, "0": 0, "backward": 0, "afterward": 0, "ignor": 0, "overflowerror": 0, "would": 0, "smaller": 0, "larger": 0, "thi": 0, "isn": 0, "t": 0, "quit": 0, "equival": 0, "becaus": 0, "isol": 0, "can": 0, "overflow": 0, "case": 0, "where": 0, "doe": 0, "exact": 0, "cannot": 0, "after": 0, "In": 0, "word": 0, "toordin": 0, "order": 0, "stop": 0, "comparison": 0, "fall": 0, "back": 0, "default": 0, "scheme": 0, "compar": 0, "address": 0, "normal": 0, "typeerror": 0, "comparand": 0, "also": 0, "howev": 0, "notimpl": 0, "instead": 0, "ha": 0, "timetupl": 0, "hook": 0, "give": 0, "kind": 0, "chanc": 0, "implement": 0, "mix": 0, "unless": 0, "latter": 0, "fals": 0, "true": 0, "respect": 0, "replac": 0, "same": 0, "valu": 0, "except": 0, "paramet": 0, "new": 0, "whichev": 0, "keyword": 0, "specifi": 0, "For": 0, "d": 0, "2002": 0, "30": 0, "26": 0, "struct_tim": 0, "localtim": 0, "dst": 0, "flag": 0, "weekdai": 0, "ydai": 0, "within": 0, "start": 0, "1st": 0, "week": 0, "sundai": 0, "saturdai": 0, "6": 0, "to_datetime_d": 0, "ndt": 0, "isoformat": 0, "string": 0, "iso": 0, "8601": 0, "format": 0, "yyyi": 0, "mm": 0, "dd": 0, "04": 0, "__str__": 0, "str": 0, "justifi": 0, "dispali": 0, "highlight": 0, "overrid": 0, "wider": 0, "view": 0, "2051": 0, "10": 0, "magh": 0, "sun": 0, "mon": 0, "tue": 0, "wed": 0, "thu": 0, "fri": 0, "sat": 0, "5": 0, "8": 0, "9": 0, "13": 0, "14": 0, "15": 0, "16": 0, "17": 0, "18": 0, "19": 0, "20": 0, "22": 0, "23": 0, "24": 0, "25": 0, "27": 0, "28": 0, "29": 0, "ctime": 0, "cha": 0, "00": 0, "mktime": 0, "platform": 0, "nativ": 0, "c": 0, "function": 0, "which": 0, "invok": 0, "conform": 0, "standard": 0, "control": 0, "explicit": 0, "code": 0, "refer": 0, "see": 0, "complet": 0, "list": 0, "direct": 0, "__format__": 0, "make": 0, "us": 0, "count": 0, "event": 0, "2050": 0, "fromtimestamp": 0, "my_birthdai": 0, "time_to_birthdai": 0, "ab": 0, "303": 0, "work": 0, "fromordin": 0, "10000": 0, "10000th": 0, "m": 0, "y": 0, "02": 0, "tuesdai": 0, "bhadau": 0, "singl": 0, "contain": 0, "inform": 0, "like": 0, "extend": 0, "exactli": 0, "3600": 0, "everi": 0, "none": 0, "remain": 0, "60": 0, "1000000": 0, "now": 0, "local": 0, "option": 0, "tz": 0, "more": 0, "precis": 0, "gotten": 0, "go": 0, "through": 0, "timestamp": 0, "gettimeofdai": 0, "explicitli": 0, "set": 0, "restrict": 0, "utcnow": 0, "date_str": 0, "correspond": 0, "pars": 0, "accord": 0, "tupl": 0, "59": 0, "999999": 0, "pass": 0, "datetime2": 0, "datetime1": 0, "durat": 0, "input": 0, "zone": 0, "adjust": 0, "done": 0, "even": 0, "awar": 0, "As": 0, "addit": 0, "subtract": 0, "defin": 0, "operand": 0, "one": 0, "have": 0, "No": 0, "act": 0, "were": 0, "first": 0, "utcoffset": 0, "never": 0, "attempt": 0, "common": 0, "base": 0, "obtain": 0, "self": 0, "timetz": 0, "creat": 0, "convers": 0, "data": 0, "tzname": 0, "els": 0, "doesn": 0, "tm_isdst": 0, "zero": 0, "isoweekdai": 0, "sep": 0, "2005": 0, "2007": 0, "43": 0, "79043": 0, "gmt": 0, "79060": 0, "06": 0, "h": 0, "2006": 0, "p": 0, "falgun": 0, "30pm": 0, "under": 0, "broadli": 0, "speak": 0, "fmt": 0, "although": 0, "should": 0, "thei": 0, "re": 0, "anywai": 0, "substitut": 0, "them": 0, "1989": 0, "version": 0, "1999": 0, "ad": 0, "mean": 0, "abbrevi": 0, "name": 0, "full": 0, "mondai": 0, "g": 0, "nepali": 0, "unicod": 0, "\u0906\u0907\u0924\u092c": 0, "\u0930": 0, "\u0938": 0, "\u092e\u092c": 0, "\u0936\u0928": 0, "\u092c": 0, "w": 0, "decim": 0, "pad": 0, "01": 0, "32": 0, "\u0966\u0967": 0, "\u0966\u0968": 0, "\u0969\u0968": 0, "bai": 0, "je": 0, "baishakh": 0, "jestha": 0, "chaitra": 0, "n": 0, "\u0935": 0, "\u0936": 0, "\u0916": 0, "\u091c": 0, "\u0937": 0, "\u0920": 0, "\u0905\u0938": 0, "\u0935\u0923": 0, "\u092d\u0926": 0, "\u0906\u0936": 0, "\u0928": 0, "\u0915": 0, "\u0924": 0, "\u092e": 0, "\u092a": 0, "\u0918": 0, "\u092b": 0, "\u0932": 0, "\u0917": 0, "\u0923": 0, "\u091a": 0, "\u0967\u0968": 0, "without": 0, "centuri": 0, "99": 0, "k": 0, "\u0966\u0966": 0, "\u096f\u096f": 0, "1976": 0, "2077": 0, "2078": 0, "2099": 0, "\u0967\u096f\u096d\u096b": 0, "\u0967\u096f\u096d\u096c": 0, "\u0968\u0966\u096f\u096f": 0, "\u0968\u0967\u0966\u0966": 0, "clock": 0, "\u0968\u0969": 0, "either": 0, "am": 0, "pm": 0, "l": 0, "\u096b\u096f": 0, "f": 0, "left": 0, "000000": 0, "000001": 0, "z": 0, "form": 0, "hhmm": 0, "empti": 0, "0000": 0, "0400": 0, "1030": 0, "est": 0, "cst": 0, "depend": 0, "care": 0, "taken": 0, "assumpt": 0, "about": 0, "output": 0, "field": 0, "vari": 0, "versu": 0, "charact": 0, "9999": 0, "1000": 0, "must": 0, "fill": 0, "digit": 0, "width": 0, "affect": 0, "unlik": 0, "leap": 0, "accept": 0, "six": 0, "right": 0, "extens": 0, "separ": 0, "therefor": 0, "transform": 0, "hh": 0, "0330": 0, "otherwis": 0, "provid": 0, "produc": 0, "90": 0, "shall": 0, "1990": 0, "89": 0, "2000": 0, "2089": 0, "lead": 0, "permit": 0, "u": 0, "53": 0}, "objects": {"": [[0, 0, 0, "-", "nepali_datetime"]], "nepali_datetime": [[0, 1, 1, "", "MAXYEAR"], [0, 1, 1, "", "MINYEAR"], [0, 1, 1, "", "NEPAL_TIME_UTC_OFFSET"], [0, 2, 1, "", "UTC0545"], [0, 2, 1, "", "date"], [0, 2, 1, "", "datetime"]], "nepali_datetime.date": [[0, 3, 1, "", "__format__"], [0, 3, 1, "", "__str__"], [0, 3, 1, "", "calendar"], [0, 3, 1, "", "ctime"], [0, 4, 1, "", "day"], [0, 3, 1, "", "from_datetime_date"], [0, 3, 1, "", "isoformat"], [0, 4, 1, "", "max"], [0, 4, 1, "", "min"], [0, 4, 1, "", "month"], [0, 3, 1, "", "replace"], [0, 4, 1, "", "resolution"], [0, 3, 1, "", "strftime"], [0, 3, 1, "", "timetuple"], [0, 3, 1, "", "to_datetime_date"], [0, 3, 1, "", "today"], [0, 3, 1, "", "weekday"], [0, 4, 1, "", "year"]], "nepali_datetime.datetime": [[0, 3, 1, "", "__format__"], [0, 3, 1, "", "__str__"], [0, 3, 1, "", "date"], [0, 4, 1, "", "day"], [0, 4, 1, "", "hour"], [0, 3, 1, "", "isoformat"], [0, 4, 1, "", "max"], [0, 4, 1, "", "microsecond"], [0, 4, 1, "", "min"], [0, 4, 1, "", "minute"], [0, 4, 1, "", "month"], [0, 3, 1, "", "now"], [0, 3, 1, "", "replace"], [0, 4, 1, "", "resolution"], [0, 4, 1, "", "second"], [0, 3, 1, "", "strftime"], [0, 3, 1, "", "strptime"], [0, 3, 1, "", "time"], [0, 3, 1, "", "timetuple"], [0, 3, 1, "", "timetz"], [0, 3, 1, "", "today"], [0, 4, 1, "", "tzinfo"], [0, 3, 1, "", "tzname"], [0, 3, 1, "", "utcnow"], [0, 3, 1, "", "weekday"], [0, 4, 1, "", "year"]]}, "objtypes": {"0": "py:module", "1": "py:data", "2": "py:class", "3": "py:method", "4": "py:attribute"}, "objnames": {"0": ["py", "module", "Python module"], "1": ["py", "data", "Python data"], "2": ["py", "class", "Python class"], "3": ["py", "method", "Python method"], "4": ["py", "attribute", "Python attribute"]}, "titleterms": {"nepali_datetim": 0, "bikram": 0, "sambat": 0, "date": 0, "nepal": 0, "time": 0, "type": 0, "avail": 0, "object": 0, "datetim": 0, "strftime": 0, "strptime": 0, "behavior": 0}, "envversion": {"sphinx.domains.c": 3, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 9, "sphinx.domains.index": 1, "sphinx.domains.javascript": 3, "sphinx.domains.math": 2, "sphinx.domains.python": 4, "sphinx.domains.rst": 2, "sphinx.domains.std": 2, "sphinx": 60}, "alltitles": {"nepali_datetime \u2014 Bikram Sambat Date and Nepal Time types": [[0, "module-nepali_datetime"]], "Available Types": [[0, "available-types"]], "nepali_datetime.date Objects": [[0, "nepali-datetime-date-objects"]], "nepali_datetime.datetime Objects": [[0, "nepali-datetime-datetime-objects"]], "strftime() and strptime() Behavior": [[0, "strftime-and-strptime-behavior"]]}, "indexentries": {"maxyear (in module nepali_datetime)": [[0, "nepali_datetime.MAXYEAR"]], "minyear (in module nepali_datetime)": [[0, "nepali_datetime.MINYEAR"]], "nepal_time_utc_offset (in module nepali_datetime)": [[0, "nepali_datetime.NEPAL_TIME_UTC_OFFSET"]], "utc0545 (class in nepali_datetime)": [[0, "nepali_datetime.UTC0545"]], "__format__() (nepali_datetime.date method)": [[0, "nepali_datetime.date.__format__"]], "__format__() (nepali_datetime.datetime method)": [[0, "nepali_datetime.datetime.__format__"]], "__str__() (nepali_datetime.date method)": [[0, "nepali_datetime.date.__str__"]], "__str__() (nepali_datetime.datetime method)": [[0, "nepali_datetime.datetime.__str__"]], "calendar() (nepali_datetime.date method)": [[0, "nepali_datetime.date.calendar"]], "ctime() (nepali_datetime.date method)": [[0, "nepali_datetime.date.ctime"]], "date (class in nepali_datetime)": [[0, "nepali_datetime.date"]], "date() (nepali_datetime.datetime method)": [[0, "nepali_datetime.datetime.date"]], "datetime (class in nepali_datetime)": [[0, "nepali_datetime.datetime"]], "day (nepali_datetime.date attribute)": [[0, "nepali_datetime.date.day"]], "day (nepali_datetime.datetime attribute)": [[0, "nepali_datetime.datetime.day"]], "from_datetime_date() (nepali_datetime.date class method)": [[0, "nepali_datetime.date.from_datetime_date"]], "hour (nepali_datetime.datetime attribute)": [[0, "nepali_datetime.datetime.hour"]], "isoformat() (nepali_datetime.date method)": [[0, "nepali_datetime.date.isoformat"]], "isoformat() (nepali_datetime.datetime method)": [[0, "nepali_datetime.datetime.isoformat"]], "max (nepali_datetime.date attribute)": [[0, "nepali_datetime.date.max"]], "max (nepali_datetime.datetime attribute)": [[0, "nepali_datetime.datetime.max"]], "microsecond (nepali_datetime.datetime attribute)": [[0, "nepali_datetime.datetime.microsecond"]], "min (nepali_datetime.date attribute)": [[0, "nepali_datetime.date.min"]], "min (nepali_datetime.datetime attribute)": [[0, "nepali_datetime.datetime.min"]], "minute (nepali_datetime.datetime attribute)": [[0, "nepali_datetime.datetime.minute"]], "module": [[0, "module-nepali_datetime"]], "month (nepali_datetime.date attribute)": [[0, "nepali_datetime.date.month"]], "month (nepali_datetime.datetime attribute)": [[0, "nepali_datetime.datetime.month"]], "nepali_datetime": [[0, "module-nepali_datetime"]], "now() (nepali_datetime.datetime class method)": [[0, "nepali_datetime.datetime.now"]], "replace() (nepali_datetime.date method)": [[0, "nepali_datetime.date.replace"]], "replace() (nepali_datetime.datetime method)": [[0, "nepali_datetime.datetime.replace"]], "resolution (nepali_datetime.date attribute)": [[0, "nepali_datetime.date.resolution"]], "resolution (nepali_datetime.datetime attribute)": [[0, "nepali_datetime.datetime.resolution"]], "second (nepali_datetime.datetime attribute)": [[0, "nepali_datetime.datetime.second"]], "strftime() (nepali_datetime.date method)": [[0, "nepali_datetime.date.strftime"]], "strftime() (nepali_datetime.datetime method)": [[0, "nepali_datetime.datetime.strftime"]], "strptime() (nepali_datetime.datetime class method)": [[0, "nepali_datetime.datetime.strptime"]], "time() (nepali_datetime.datetime method)": [[0, "nepali_datetime.datetime.time"]], "timetuple() (nepali_datetime.date method)": [[0, "nepali_datetime.date.timetuple"]], "timetuple() (nepali_datetime.datetime method)": [[0, "nepali_datetime.datetime.timetuple"]], "timetz() (nepali_datetime.datetime method)": [[0, "nepali_datetime.datetime.timetz"]], "to_datetime_date() (nepali_datetime.date method)": [[0, "nepali_datetime.date.to_datetime_date"]], "today() (nepali_datetime.date class method)": [[0, "nepali_datetime.date.today"]], "today() (nepali_datetime.datetime class method)": [[0, "nepali_datetime.datetime.today"]], "tzinfo (nepali_datetime.datetime attribute)": [[0, "nepali_datetime.datetime.tzinfo"]], "tzname() (nepali_datetime.datetime method)": [[0, "nepali_datetime.datetime.tzname"]], "utcnow() (nepali_datetime.datetime class method)": [[0, "nepali_datetime.datetime.utcnow"]], "weekday() (nepali_datetime.date method)": [[0, "nepali_datetime.date.weekday"]], "weekday() (nepali_datetime.datetime method)": [[0, "nepali_datetime.datetime.weekday"]], "year (nepali_datetime.date attribute)": [[0, "nepali_datetime.date.year"]], "year (nepali_datetime.datetime attribute)": [[0, "nepali_datetime.datetime.year"]]}})
\ No newline at end of file
diff --git a/docs/source/index.rst b/docs/source/index.rst
index fe26da3..cc19b03 100644
--- a/docs/source/index.rst
+++ b/docs/source/index.rst
@@ -713,9 +713,16 @@ Directives   Meaning                          Example                  Notes
              or -HHMM (empty string if the    +1030                         
              object is naive).                                             
 
-``%Z``       Time zone name (empty string     (empty), UTC, EST, CST        
+``%Z``       Time zone name (empty string     (empty), UTC, EST, CST
              if the object is naive).                                      
 
+``%U``       Week number of the year (Sunday  00, 01, ..., 53            \(7)
+             as the first day of the week)
+             as a zero padded decimal number.
+             All days in a new year preceding
+             the first Sunday are considered
+             to be in week 0.
+
 ===========  ================================ ======================== =======
 
                         
diff --git a/nepali_datetime/__init__.py b/nepali_datetime/__init__.py
index 1a0c57c..6e01970 100644
--- a/nepali_datetime/__init__.py
+++ b/nepali_datetime/__init__.py
@@ -5,7 +5,7 @@
 
 Supports >= Python3.5
 """
-__version__ = "1.0.8"
+__version__ = "1.0.8.1"
 
 __author__ = "Amit Garu <amitgaru2@gmail.com>"
 
@@ -58,6 +58,7 @@
     'l': lambda o: ''.join(_DIGIT_NP[int(i)] for i in '%02d' % getattr(o, 'minute', 0)),
     'S': lambda o: '%02d' % getattr(o, 'second', 0),
     's': lambda o: ''.join(_DIGIT_NP[int(i)] for i in '%02d' % getattr(o, 'second', 0)),
+    'U': lambda o: '%02d' % ((o.timetuple().tm_yday + 7 - o.weekday()) // 7,),
 }
 
 _CALENDAR = {}


Test patch:
diff --git a/tests/test_strftime_strptime.py b/tests/test_strftime_strptime.py
index 5b4f437..9727e31 100644
--- a/tests/test_strftime_strptime.py
+++ b/tests/test_strftime_strptime.py
@@ -14,7 +14,7 @@ def test_strftime_date(self):
 
     def test_strftime_datetime(self):
         dt = nepali_datetime.datetime(2052, 10, 29, 15, 22, 50, 2222)
-        assert dt.strftime("%m/%d/%Y %I:%M:%S.%f %p %a %A") == "10/29/2052 03:22:50.002222 PM Mon Monday"
+        assert dt.strftime("%m/%d/%Y %I:%M:%S.%f %p %a %A %U") == "10/29/2052 03:22:50.002222 PM Mon Monday 44"
 
 
 class TestStrptime: