var searchIndex = {}; searchIndex["hourglass"] = {"doc":"`hourglass` provides support for timezone, datetime arithmetic and take care\nof subtleties related to time handling, like leap seconds.","items":[[3,"Timezone","hourglass","A timezone.",null,null],[12,"name","","The timezone name e.g. `Europe/Paris`.",0,null],[3,"Datetime","","A precise point in time along associated to a `Timezone`.",null,null],[3,"Deltatime","","A delta of time used in `Datetime` arithmetic.",null,null],[11,"new","","Try to load a new `Timezone`.\nIt assumes that the zoneinfo data are located\nunder `/usr/share/zoneinfo`.",0,{"inputs":[{"name":"str"}],"output":{"name":"result"}}],[11,"local","","Load the local `Timezone` set by the system,\ndisregarding the `TZ` environment variable.",0,{"inputs":[],"output":{"name":"result"}}],[11,"utc","","Returns the `UTC` timezone.",0,{"inputs":[],"output":{"name":"self"}}],[11,"fixed","","Returns a fixed offset to `UTC` timezone.\nThe provided offset is in seconds.",0,{"inputs":[{"name":"i32"}],"output":{"name":"self"}}],[11,"now","","Return the `Datetime` representing now, relative to this `Timezone`.",0,null],[11,"parse","","Parse a `Datetime` relative to this `Timezone` according\nto the given format. Timezone-related field are ignored.\nPanics if the string does not match the format.",0,null],[11,"unix","","Create a new `Datetime` from a Unix timestamp. The provided\ntimestamp represents Unix seconds from the Epoch, discarding any\nleap seconds that may have happened in between. A Unix timestamp\nis ambiguous on leap second insertion (e.g. `1435708800` is\nequal to both `2015-06-30T23:59:60Z` and `2015-07-01T00:00:00Z`)\nhowever, `unix` will always choose the non-leap second. Panics\nif `nano` ∉ [0, 999999999].",0,null],[11,"datetime","","Create a new `Datetime` relative to this `Timezone`.\nPanics if the following constraints do not hold:",0,null],[11,"clone","","",1,null],[11,"project","","Project the current `Datetime` in another `Timezone`.",1,null],[11,"date","","Return the date component of the `Datetime` expressed\nin the associated `Timezone`. The tuple holds the\nyear, month and day in this order.",1,null],[11,"time","","Return the time component of the `Datetime` expressed\nin the associated `Timezone`. The tuple holds\nthe hour, minute, second and nanosecond in this order.",1,null],[11,"unix","","Return the unix timestamp. This is the number of unix seconds\nsince 1970-01-01T00:00:00Z.",1,null],[11,"format","","Format the `Datetime` according to the provided `format`.\nThe following control characters are implemented:",1,null],[11,"rfc3339","","Format `Datetime` according to RFC 3339 format.",1,null],[11,"rfc2822","","Format `Datetime` according to RFC 2822 format.",1,null],[11,"eq","","",1,null],[11,"partial_cmp","","",1,null],[11,"cmp","","",1,null],[11,"add","","",1,null],[11,"sub","","",1,null],[11,"sub","","",1,null],[11,"fmt","","",1,null],[11,"fmt","","",2,null],[11,"clone","","",2,null],[11,"nanoseconds","","Create a delta of `n` nanoseconds. Possible leap seconds are\naccounted for.",2,{"inputs":[{"name":"i64"}],"output":{"name":"self"}}],[11,"microseconds","","Create a delta of `n` microseconds. Possible leap seconds are\naccounted for.",2,{"inputs":[{"name":"i64"}],"output":{"name":"self"}}],[11,"milliseconds","","Create a delta of `n` milliseconds. Possible leap seconds are\naccounted for.",2,{"inputs":[{"name":"i64"}],"output":{"name":"self"}}],[11,"seconds","","Create a delta of `n` seconds. Possible leap seconds are\naccounted for.",2,{"inputs":[{"name":"i64"}],"output":{"name":"self"}}],[11,"minutes","","Create a delta of `n` minutes. Possible leap seconds are\naccounted for.",2,{"inputs":[{"name":"i64"}],"output":{"name":"self"}}],[11,"hours","","Create a delta of `n` hours. Possible leap seconds are accounted\nfor.",2,{"inputs":[{"name":"i64"}],"output":{"name":"self"}}],[11,"days","","Create a delta of `n` days. The time part of the shifted\n`Datetime` is not affected. This is a logical day, therefore,\nleap seconds are ignored.",2,{"inputs":[{"name":"i64"}],"output":{"name":"self"}}],[11,"as_nanoseconds","","Returns the total number of nanoseconds contained in this delta.\nIf the delta is created from `Deltatime::days`, the number\nof nanoseconds in a day is assumed to be `86400e9`.",2,null],[11,"as_microseconds","","Returns the total number of microseconds contained in this delta.\nIf the delta is created from `Deltatime::days`, the number\nof microseconds in a day is assumed to be `86400e6`.",2,null],[11,"as_milliseconds","","Returns the total number of milliseconds contained in this delta.\nIf the delta is created from `Deltatime::days`, the number\nof milliseconds in a day is assumed to be `86400e3`.",2,null],[11,"as_seconds","","Returns the total number of seconds contained in this delta.\nIf the delta is created from `Deltatime::days`, the number\nof seconds in a day is assumed to be `86400`.",2,null],[11,"as_minutes","","Returns the total number of minutes contained in this delta.",2,null],[11,"as_hours","","Returns the total number of hours contained in this delta.",2,null],[11,"as_days","","Returns the total number of days contained in this delta.",2,null],[11,"eq","","",2,null],[11,"partial_cmp","","",2,null],[11,"cmp","","",2,null],[11,"neg","","",2,null]],"paths":[[3,"Timezone"],[3,"Datetime"],[3,"Deltatime"]]}; initSearch(searchIndex);