-

Chandra-specific astropy Time class

+

Chandra-specific astropy Time class

The cxotime package provides a CxoTime class which provides Chandra-specific functionality while deriving from the Time class of the astropytime package. The astropytime package provides robust 128-bit time representation, @@ -72,11 +71,6 @@

Chandra-specific astropy Time classsecs (aka cxcsec in the native Time class).

----- @@ -108,10 +102,6 @@

Chandra-specific astropy Time classCxoTime are:

Format

Description

---- @@ -169,7 +159,7 @@

Chandra-specific astropy Time class -

Basic initialization

+

Basic initialization

>>> from cxotime import CxoTime
 >>> t = CxoTime(100.0)
 >>> t.date
@@ -196,7 +186,7 @@ 

Basic initialization
-

Guessing and specifying the format

+

Guessing and specifying the format

Generally speaking CxoTime will successfully guess the format for string-based times. However this requires some time, so if you know the format in advance then it is recommended to provide this via the format @@ -210,7 +200,7 @@

Guessing and specifying the format -

Fast conversion between formats

+

Fast conversion between formats

Converting between time formats (e.g. from CXC seconds to Year Day-of-Year) is easily done with the CxoTime class, but this involves some overhead and is relatively slow for scalar values or small arrays (less than around 100 @@ -220,7 +210,7 @@

Fast conversion between formats -

convert_time_format

+

convert_time_format

The first option is a generalized time format conversion function convert_time_format() that can be used to convert between any of the supported fast formats:

@@ -254,7 +244,7 @@

convert_time_fo

-

Convenience functions like secs2date

+

Convenience functions like secs2date

For historical compatibility and for succinct code, direct conversion between any two of the “fast” formats is also available via convenience functions. These have the name <fmt_in>2<fmt_out> where fmt_in and fmt_out are the input and output formats. @@ -271,7 +261,7 @@

Convenience functions like

Format

Example

---- @@ -380,10 +366,6 @@

API docsCxoTime are:

Format

Description

---- @@ -459,9 +441,32 @@

API docs +
+classmethod now()[source]
+

Creates a new object corresponding to the instant in time this +method is called.

+
+

Note

+

“Now” is determined using the ~datetime.datetime.utcnow +function, so its accuracy and precision is determined by that +function. Generally that means it is set by the accuracy of +your system clock.

+
+
+
Returns:
+
+
nowtimeTime

A new Time object (or a subclass of Time if this is called from +such a subclass) at the current time.

+
+
+
+
+
+
-print_conversions(file=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>)[source]
+print_conversions(file=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>)[source]

Print a table of conversions to a standard set of formats.

Example:

>>> from cxotime import CxoTime
@@ -477,7 +482,7 @@ 

API docs -
Parameters
+
Parameters:

file – file-like, optional File-like object to write output (default=sys.stdout).

@@ -488,7 +493,7 @@

API docs
-class cxotime.cxotime.TimeDate(val1, val2, scale, precision, in_subfmt, out_subfmt, from_jd=False)[source]
+class cxotime.cxotime.TimeDate(val1, val2, scale, precision, in_subfmt, out_subfmt, from_jd=False)[source]

Year, day-of-year and time as “YYYY:DOY:HH:MM:SS.sss…” in UTC.

The day-of-year (DOY) goes from 001 to 365 (366 in leap years). For example, 2000:001:00:00:00.000 is midnight on January 1, 2000.

@@ -525,7 +530,7 @@

API docsto_value() and then make the value property be a simple call to self.to_value().

-
Parameters
+
Parameters:
parentobject

Parent ~astropy.time.Time object associated with this ~astropy.time.TimeFormat object

@@ -534,7 +539,7 @@

API docsReturns +
Returns:
valuenumpy.array, numpy.ma.array

Array or masked array of formatted time representation values

@@ -547,7 +552,7 @@

API docs
-class cxotime.cxotime.TimeFracYear(val1, val2, scale, precision, in_subfmt, out_subfmt, from_jd=False)[source]
+class cxotime.cxotime.TimeFracYear(val1, val2, scale, precision, in_subfmt, out_subfmt, from_jd=False)[source]

Time as a decimal year, with integer values corresponding to midnight of the first day of each year. For example 2000.5 corresponds to the ISO time ‘2000-07-02 00:00:00’.

@@ -562,7 +567,7 @@

API docs
-property value
+property value

Return time representation from internal jd1 and jd2. Subclasses that require parent or to adjust the jds should override this method.

@@ -572,7 +577,7 @@

API docs
-class cxotime.cxotime.TimeGreta(val1, val2, scale, precision, in_subfmt, out_subfmt, from_jd=False)[source]
+class cxotime.cxotime.TimeGreta(val1, val2, scale, precision, in_subfmt, out_subfmt, from_jd=False)[source]

Date as a string in format ‘YYYYDDD.hhmmsssss’, where sssss is number of milliseconds.

This can be input as a float, integer or string, but the output is always @@ -590,7 +595,7 @@

API docsto_value() and then make the value property be a simple call to self.to_value().

-
Parameters
+
Parameters:
parentobject

Parent ~astropy.time.Time object associated with this ~astropy.time.TimeFormat object

@@ -599,7 +604,7 @@

API docsReturns +
Returns:
valuenumpy.array, numpy.ma.array

Array or masked array of formatted time representation values

@@ -612,7 +617,7 @@

API docs
-class cxotime.cxotime.TimeMaude(val1, val2, scale, precision, in_subfmt, out_subfmt, from_jd=False)[source]
+class cxotime.cxotime.TimeMaude(val1, val2, scale, precision, in_subfmt, out_subfmt, from_jd=False)[source]

Date as a 64-bit integer in format YYYYDDDHHMMSSsss, where sss is number of milliseconds.

This can be input as an integer or string, but the output is always integer.

@@ -629,7 +634,7 @@

API docsto_value() and then make the value property be a simple call to self.to_value().

-
Parameters
+
Parameters:
parentobject

Parent ~astropy.time.Time object associated with this ~astropy.time.TimeFormat object

@@ -638,7 +643,7 @@

API docsReturns +
Returns:
valuenumpy.array, numpy.ma.array

Array or masked array of formatted time representation values

@@ -651,20 +656,20 @@

API docs
-class cxotime.cxotime.TimeSecs(val1, val2, scale, precision, in_subfmt, out_subfmt, from_jd=False)[source]
+class cxotime.cxotime.TimeSecs(val1, val2, scale, precision, in_subfmt, out_subfmt, from_jd=False)[source]

Chandra X-ray Center seconds from 1998-01-01 00:00:00 TT. For example, 63072064.184 is midnight on January 1, 2000.

-

Converters

+

Converters

cxotime.convert.convert_time_format(val, fmt_out, *, fmt_in=None)[source]

Convert a time to a different format.

-
Parameters
+
Parameters:
valCxoTimeLike

Time value

@@ -674,7 +679,7 @@

API docsReturns +
Returns:
val_outstr

Time string in output format

@@ -695,13 +700,13 @@

API docs -
Parameters
+
Parameters:
datestr, bytes, float, list, ndarray

Date (Year, day-of-year, time)

-
Returns
+
Returns:
datestr, np.ndarray[str]

GRETA date

@@ -722,13 +727,13 @@

API docs -
Parameters
+
Parameters:
datestr, bytes, float, list, ndarray

Date (Year, day-of-year, time)

-
Returns
+
Returns:
jdfloat, ndarray[float]

Julian Date

@@ -749,13 +754,13 @@

API docs -
Parameters
+
Parameters:
datestr, bytes, float, list, ndarray

Date (Year, day-of-year, time)

-
Returns
+
Returns:
dateint, ndarray[int]

MAUDE date

@@ -776,13 +781,13 @@

API docs -
Parameters
+
Parameters:
datestr, bytes, float, list, ndarray

Date (Year, day-of-year, time)

-
Returns
+
Returns:
timefloat, ndarray[float]

CXC seconds

@@ -799,13 +804,13 @@

API docs -
Parameters
+
Parameters:
datestr, bytes, float, list, np.ndarray

GRETA date

-
Returns
+
Returns:
datestr, ndarray[str]

Date (Year, day-of-year, time)

@@ -822,13 +827,13 @@

API docs -
Parameters
+
Parameters:
datestr, bytes, float, list, np.ndarray

GRETA date

-
Returns
+
Returns:
jdfloat, ndarray[float]

Julian Date

@@ -845,13 +850,13 @@

API docs -
Parameters
+
Parameters:
datestr, bytes, float, list, np.ndarray

GRETA date

-
Returns
+
Returns:
dateint, ndarray[int]

MAUDE date

@@ -868,13 +873,13 @@

API docs -
Parameters
+
Parameters:
datestr, bytes, float, list, np.ndarray

GRETA date

-
Returns
+
Returns:
timefloat, ndarray[float]

CXC seconds

@@ -891,13 +896,13 @@

API docs -
Parameters
+
Parameters:
jdfloat, int, list, ndarray

Julian Date

-
Returns
+
Returns:
datestr, ndarray[str]

Date (Year, day-of-year, time)

@@ -914,13 +919,13 @@

API docs -
Parameters
+
Parameters:
jdfloat, int, list, ndarray

Julian Date

-
Returns
+
Returns:
datestr, np.ndarray[str]

GRETA date

@@ -937,13 +942,13 @@

API docs -
Parameters
+
Parameters:
jdfloat, int, list, ndarray

Julian Date

-
Returns
+
Returns:
dateint, ndarray[int]

MAUDE date

@@ -960,13 +965,13 @@

API docs -
Parameters
+
Parameters:
jdfloat, int, list, ndarray

Julian Date

-
Returns
+
Returns:
timefloat, ndarray[float]

CXC seconds

@@ -983,13 +988,13 @@

API docs -
Parameters
+
Parameters:
datestr, bytes, int, list, ndarray

MAUDE date

-
Returns
+
Returns:
datestr, ndarray[str]

Date (Year, day-of-year, time)

@@ -1006,13 +1011,13 @@

API docs -
Parameters
+
Parameters:
datestr, bytes, int, list, ndarray

MAUDE date

-
Returns
+
Returns:
datestr, np.ndarray[str]

GRETA date

@@ -1029,13 +1034,13 @@

API docs -
Parameters
+
Parameters:
datestr, bytes, int, list, ndarray

MAUDE date

-
Returns
+
Returns:
jdfloat, ndarray[float]

Julian Date

@@ -1052,13 +1057,13 @@

API docs -
Parameters
+
Parameters:
datestr, bytes, int, list, ndarray

MAUDE date

-
Returns
+
Returns:
timefloat, ndarray[float]

CXC seconds

@@ -1081,13 +1086,13 @@

API docs -
Parameters
+
Parameters:
timefloat, int, list, ndarray

CXC seconds

-
Returns
+
Returns:
datestr, ndarray[str]

Date (Year, day-of-year, time)

@@ -1104,13 +1109,13 @@

API docs -
Parameters
+
Parameters:
timefloat, int, list, ndarray

CXC seconds

-
Returns
+
Returns:
datestr, np.ndarray[str]

GRETA date

@@ -1127,13 +1132,13 @@

API docs -
Parameters
+
Parameters:
timefloat, int, list, ndarray

CXC seconds

-
Returns
+
Returns:
jdfloat, ndarray[float]

Julian Date

@@ -1150,13 +1155,13 @@

API docs -
Parameters
+
Parameters:
timefloat, int, list, ndarray

CXC seconds

-
Returns
+
Returns:
dateint, ndarray[int]

MAUDE date

@@ -1188,8 +1193,59 @@

API docsPrint common time conversions
  • Compatibility with DateTime
  • API docs
  • @@ -1220,7 +1276,7 @@

    This Page

    Back to Top

    © Copyright 2015, Tom Aldcroft.
    - Created using Sphinx 4.2.0.   + Created using Sphinx 6.1.3.  

    diff --git a/docs/objects.inv b/docs/objects.inv index d140ef9..51efdc2 100644 Binary files a/docs/objects.inv and b/docs/objects.inv differ diff --git a/docs/py-modindex.html b/docs/py-modindex.html index 7b3116c..9c9f244 100644 --- a/docs/py-modindex.html +++ b/docs/py-modindex.html @@ -1,7 +1,7 @@ - + @@ -10,9 +10,8 @@ - - + @@ -115,7 +114,7 @@

    Python Module Index

    Back to Top

    © Copyright 2015, Tom Aldcroft.
    - Created using Sphinx 4.2.0.   + Created using Sphinx 6.1.3.  

    diff --git a/docs/search.html b/docs/search.html index 859c411..e1f845a 100644 --- a/docs/search.html +++ b/docs/search.html @@ -1,7 +1,7 @@ - + @@ -11,9 +11,8 @@ - - + @@ -109,7 +108,7 @@

    Search

    Back to Top

    © Copyright 2015, Tom Aldcroft.
    - Created using Sphinx 4.2.0.   + Created using Sphinx 6.1.3.  

    diff --git a/docs/searchindex.js b/docs/searchindex.js index 8d1b8cb..66f8ab8 100644 --- a/docs/searchindex.js +++ b/docs/searchindex.js @@ -1 +1 @@ -Search.setIndex({docnames:["index"],envversion:{"sphinx.domains.c":2,"sphinx.domains.changeset":1,"sphinx.domains.citation":1,"sphinx.domains.cpp":4,"sphinx.domains.index":1,"sphinx.domains.javascript":2,"sphinx.domains.math":2,"sphinx.domains.python":3,"sphinx.domains.rst":2,"sphinx.domains.std":2,"sphinx.ext.viewcode":1,sphinx:56},filenames:["index.rst"],objects:{"cxotime.convert":{convert_time_format:[0,1,1,""],date2greta:[0,1,1,""],date2jd:[0,1,1,""],date2maude:[0,1,1,""],date2secs:[0,1,1,""],greta2date:[0,1,1,""],greta2jd:[0,1,1,""],greta2maude:[0,1,1,""],greta2secs:[0,1,1,""],jd2date:[0,1,1,""],jd2greta:[0,1,1,""],jd2maude:[0,1,1,""],jd2secs:[0,1,1,""],maude2date:[0,1,1,""],maude2greta:[0,1,1,""],maude2jd:[0,1,1,""],maude2secs:[0,1,1,""],print_time_conversions:[0,1,1,""],secs2date:[0,1,1,""],secs2greta:[0,1,1,""],secs2jd:[0,1,1,""],secs2maude:[0,1,1,""]},"cxotime.cxotime":{CxoTime:[0,2,1,""],TimeDate:[0,2,1,""],TimeFracYear:[0,2,1,""],TimeGreta:[0,2,1,""],TimeMaude:[0,2,1,""],TimeSecs:[0,2,1,""]},"cxotime.cxotime.CxoTime":{get_conversions:[0,3,1,""],print_conversions:[0,3,1,""]},"cxotime.cxotime.TimeDate":{set_jds:[0,3,1,""],to_value:[0,3,1,""]},"cxotime.cxotime.TimeFracYear":{to_value:[0,3,1,""],value:[0,4,1,""]},"cxotime.cxotime.TimeGreta":{to_value:[0,3,1,""]},"cxotime.cxotime.TimeMaude":{to_value:[0,3,1,""]},cxotime:{convert:[0,0,0,"-"],cxotime:[0,0,0,"-"]}},objnames:{"0":["py","module","Python module"],"1":["py","function","Python function"],"2":["py","class","Python class"],"3":["py","method","Python method"],"4":["py","property","Python property"]},objtypes:{"0":"py:module","1":"py:function","2":"py:class","3":"py:method","4":"py:property"},terms:{"0":0,"00":0,"000":0,"00000":0,"000000123":0,"000036816":0,"0003703703":0,"001":0,"001536816":0,"002":0,"003":0,"00411":0,"01":0,"010":0,"01t00":0,"02":0,"02679":0,"02t07":0,"03":0,"04":0,"045":0,"05":0,"07":0,"1":0,"10":0,"100":0,"1000":0,"10t13":0,"10x":0,"12":0,"123":0,"1262304000":0,"128":0,"1641124800":0,"1673376062":0,"18":0,"184":0,"1950":0,"1998":0,"1998001":0,"1999":0,"2":0,"20":0,"2000":0,"2001":0,"2009":0,"2010":0,"2020":0,"2020001223344555":0,"2022":0,"2022001":0,"2023":0,"21":0,"22":0,"23":0,"2451544":0,"2459580":0,"28":0,"31":0,"31t19":0,"33":0,"36":0,"365":0,"366":0,"378691266":0,"4":0,"41":0,"44":0,"45":0,"46":0,"48":0,"5":0,"51544":0,"555":0,"56":0,"59":0,"603":0,"603000":0,"630720013":0,"63072064":0,"64":0,"65":0,"66":0,"67":0,"730120":0,"757512069":0,"787":0,"789763331":0,"8":0,"816":0,"939":0,"946684800":0,"byte":0,"case":0,"default":0,"float":0,"import":0,"int":0,"new":0,"return":0,"while":0,A:0,For:0,In:0,The:0,These:0,_io:0,ad:0,add:0,adjust:0,advanc:0,aka:0,all:0,allow:0,also:0,alwai:0,am:0,an:0,analysi:0,ani:0,applic:0,ar:0,arg:0,argument:0,arithmet:0,around:0,arrai:0,associ:0,astropytim:0,avail:0,b1950:0,base:0,being:0,below:0,betweeen:0,bit:0,both:0,built:0,byear:0,byear_str:0,call:0,can:0,center:0,code:0,command:0,comparison:0,comput:0,contain:0,correspond:0,current:0,cxc:0,cxcsec:0,cxo:0,cxotimelik:0,dai:0,date2greta:0,date2jd:0,date2maud:0,date2sec:0,date:0,date_hm:0,ddd:0,dec:0,decim:0,decimalyear:0,deriv:0,describ:0,descript:0,dict:0,differ:0,direct:0,doi:0,done:0,dtype:0,e:0,each:0,easili:0,either:0,element:0,encod:0,end:0,entry_point:0,equival:0,est:0,exactli:0,exampl:0,exist:0,expect:0,fals:0,faster:0,ffffff:0,file:0,first:0,fit:0,fmt_in:0,fmt_out:0,frac_year:0,fraction:0,from:0,from_jd:0,g:0,gener:0,get:0,get_convers:0,goe:0,gp:0,greta2d:0,greta2jd:0,greta2maud:0,greta2sec:0,greta:0,ha:0,have:0,hh:0,hhmmsss:0,hhmmsssss:0,histor:0,hour:0,howev:0,ident:0,ignor:0,implement:0,improv:0,in_subfmt:0,includ:0,input:0,instead:0,integ:0,interfac:0,intern:0,interpret:0,involv:0,iso:0,iso_loc:0,isot:0,j2000:0,jan:0,januari:0,jd1:0,jd2:0,jd2date:0,jd2greta:0,jd2maud:0,jd2sec:0,jd:0,julian:0,jyear:0,jyear_str:0,kei:0,know:0,kwarg:0,leap:0,least:0,legaci:0,less:0,line:0,list:0,local:0,ma:0,make:0,mask:0,maud:0,maude2d:0,maude2greta:0,maude2jd:0,maude2sec:0,method:0,middl:0,midnight:0,millisecond:0,min:0,mjd:0,mm:0,mode:0,more:0,most:0,muad:0,name:0,nativ:0,ndarrai:0,next:0,none:0,note:0,np:0,number:0,numer:0,numpi:0,object:0,one:0,option:0,out:0,out_subfmt:0,output:0,overhead:0,overrid:0,packag:0,paramet:0,parent:0,pars:0,perform:0,plot_dat:0,pm:0,point:0,potenti:0,precis:0,print_convers:0,print_time_convers:0,prior:0,properti:0,provid:0,python:0,quantiti:0,rai:0,ration:0,recommend:0,regardless:0,rel:0,represent:0,requir:0,robust:0,s:0,scalar:0,scale:0,script:0,sec:0,second:0,secs2greta:0,secs2jd:0,secs2maud:0,section:0,self:0,set:0,set_jd:0,should:0,shown:0,signific:0,simpl:0,sinc:0,slow:0,small:0,so:0,some:0,sourc:0,speak:0,ss:0,sss:0,sssss:0,standard:0,start:0,stdout:0,str:0,string:0,subclass:0,subformat:0,subformt:0,subtract:0,successfulli:0,succinct:0,sun:0,support:0,sy:0,system:0,t2:0,t:0,tabl:0,tai:0,temporarili:0,textiowrapp:0,than:0,thi:0,thu:0,timed:0,timedelta:0,timeformat:0,timefracyear:0,timegreta:0,timemaud:0,timesec:0,tm:0,to_valu:0,transform:0,trigger:0,tt:0,tue:0,two:0,typic:0,u17:0,u21:0,u:0,unit:0,unix:0,up:0,us:0,utc:0,utf:0,val1:0,val2:0,val:0,val_out:0,valu:0,varieti:0,version:0,via:0,w:0,wai:0,where:0,which:0,write:0,x:0,ydai:0,year:0,you:0,yyydddhhmmsss:0,yyyi:0,yyyyddd:0,yyyydddhhmmsssss:0},titles:["Chandra-specific astropy Time class"],titleterms:{"class":0,"function":0,api:0,astropi:0,basic:0,between:0,chandra:0,common:0,compat:0,conveni:0,convers:0,convert:0,convert_time_format:0,cxotim:0,datetim:0,doc:0,fast:0,format:0,guess:0,initi:0,like:0,print:0,secs2dat:0,specif:0,specifi:0,time:0}}) \ No newline at end of file +Search.setIndex({"docnames": ["index"], "filenames": ["index.rst"], "titles": ["Chandra-specific astropy Time class"], "terms": {"The": 0, "packag": 0, "provid": 0, "which": 0, "while": 0, "deriv": 0, "from": 0, "astropytim": 0, "robust": 0, "128": 0, "bit": 0, "represent": 0, "arithmet": 0, "comparison": 0, "ar": 0, "ad": 0, "shown": 0, "tabl": 0, "below": 0, "default": 0, "i": 0, "interpret": 0, "ani": 0, "numer": 0, "valu": 0, "sec": 0, "aka": 0, "cxcsec": 0, "nativ": 0, "descript": 0, "system": 0, "second": 0, "sinc": 0, "1998": 0, "01": 0, "01t00": 0, "00": 0, "tt": 0, "utc": 0, "date": 0, "yyyi": 0, "ddd": 0, "hh": 0, "mm": 0, "ss": 0, "frac_year": 0, "ffffff": 0, "float": 0, "point": 0, "year": 0, "greta": 0, "yyyyddd": 0, "hhmmsssss": 0, "string": 0, "maud": 0, "yyyydddhhmmsssss": 0, "integ": 0, "standard": 0, "built": 0, "avail": 0, "exampl": 0, "byear": 0, "1950": 0, "0": 0, "byear_str": 0, "b1950": 0, "63072064": 0, "184": 0, "2000": 0, "1": 0, "2": 0, "12": 0, "decimalyear": 0, "45": 0, "fit": 0, "000": 0, "tai": 0, "gp": 0, "630720013": 0, "iso": 0, "isot": 0, "jd": 0, "2451544": 0, "5": 0, "jyear": 0, "jyear_str": 0, "j2000": 0, "mjd": 0, "51544": 0, "plot_dat": 0, "730120": 0, "0003703703": 0, "unix": 0, "946684800": 0, "ydai": 0, "001": 0, "import": 0, "t": 0, "100": 0, "36": 0, "816": 0, "scale": 0, "unit": 0, "u": 0, "t2": 0, "dai": 0, "10": 0, "20": 0, "": 0, "arrai": 0, "002": 0, "46": 0, "003": 0, "56": 0, "dtype": 0, "u21": 0, "02": 0, "03": 0, "04": 0, "64": 0, "65": 0, "66": 0, "67": 0, "gener": 0, "speak": 0, "successfulli": 0, "base": 0, "howev": 0, "thi": 0, "requir": 0, "some": 0, "so": 0, "you": 0, "know": 0, "advanc": 0, "recommend": 0, "via": 0, "argument": 0, "2020001223344555": 0, "2020": 0, "22": 0, "33": 0, "44": 0, "555": 0, "e": 0, "g": 0, "cxc": 0, "easili": 0, "done": 0, "involv": 0, "overhead": 0, "rel": 0, "slow": 0, "scalar": 0, "small": 0, "less": 0, "than": 0, "around": 0, "element": 0, "For": 0, "applic": 0, "where": 0, "end": 0, "up": 0, "being": 0, "signific": 0, "differ": 0, "interfac": 0, "typic": 0, "least": 0, "10x": 0, "faster": 0, "an": 0, "input": 0, "two": 0, "option": 0, "describ": 0, "next": 0, "section": 0, "first": 0, "can": 0, "us": 0, "support": 0, "int": 0, "julian": 0, "fmt_in": 0, "ident": 0, "2022": 0, "123": 0, "2022001": 0, "000000123": 0, "939": 0, "2459580": 0, "note": 0, "intern": 0, "object": 0, "perform": 0, "improv": 0, "fmt_out": 0, "045": 0, "21": 0, "28": 0, "48": 0, "exactli": 0, "equival": 0, "histor": 0, "succinct": 0, "code": 0, "direct": 0, "also": 0, "These": 0, "have": 0, "name": 0, "output": 0, "includ": 0, "date2sec": 0, "secs2greta": 0, "greta2jd": 0, "1000": 0, "1998001": 0, "000036816": 0, "001536816": 0, "u17": 0, "ha": 0, "betweeen": 0, "varieti": 0, "wai": 0, "either": 0, "command": 0, "line": 0, "script": 0, "method": 0, "print_convers": 0, "local": 0, "sun": 0, "jan": 0, "07": 0, "am": 0, "est": 0, "iso_loc": 0, "02t07": 0, "05": 0, "757512069": 0, "00411": 0, "1641124800": 0, "current": 0, "2023": 0, "tue": 0, "41": 0, "pm": 0, "10t13": 0, "603000": 0, "010": 0, "18": 0, "603": 0, "789763331": 0, "787": 0, "02679": 0, "1673376062": 0, "python": 0, "tm": 0, "kei": 0, "In": 0, "instead": 0, "prior": 0, "version": 0, "4": 0, "most": 0, "case": 0, "more": 0, "ration": 0, "expect": 0, "2001": 0, "trigger": 0, "middl": 0, "A": 0, "both": 0, "timedelta": 0, "transform": 0, "start": 0, "one": 0, "add": 0, "subtract": 0, "quantiti": 0, "arg": 0, "kwarg": 0, "sourc": 0, "analysi": 0, "cxo": 0, "all": 0, "hhmmsss": 0, "muad": 0, "yyydddhhmmsss": 0, "get_convers": 0, "get": 0, "dict": 0, "set": 0, "2010": 0, "2009": 0, "thu": 0, "dec": 0, "31": 0, "31t19": 0, "378691266": 0, "1262304000": 0, "classmethod": 0, "now": 0, "creat": 0, "new": 0, "correspond": 0, "instant": 0, "call": 0, "determin": 0, "utcnow": 0, "its": 0, "accuraci": 0, "precis": 0, "mean": 0, "your": 0, "clock": 0, "return": 0, "nowtim": 0, "subclass": 0, "file": 0, "_io": 0, "textiowrapp": 0, "stdout": 0, "mode": 0, "w": 0, "encod": 0, "utf": 0, "8": 0, "00000": 0, "paramet": 0, "write": 0, "sy": 0, "timed": 0, "val1": 0, "val2": 0, "in_subfmt": 0, "out_subfmt": 0, "from_jd": 0, "fals": 0, "doi": 0, "sss": 0, "goe": 0, "365": 0, "366": 0, "leap": 0, "midnight": 0, "januari": 0, "alwai": 0, "regardless": 0, "1999": 0, "23": 0, "59": 0, "allow": 0, "subformat": 0, "date_hm": 0, "hour": 0, "min": 0, "fraction": 0, "set_jd": 0, "pars": 0, "contain": 0, "jd1": 0, "jd2": 0, "to_valu": 0, "parent": 0, "none": 0, "ignor": 0, "properti": 0, "comput": 0, "temporarili": 0, "self": 0, "legaci": 0, "should": 0, "implement": 0, "make": 0, "simpl": 0, "associ": 0, "timeformat": 0, "str": 0, "subformt": 0, "exist": 0, "numpi": 0, "ma": 0, "mask": 0, "timefracyear": 0, "decim": 0, "each": 0, "adjust": 0, "overrid": 0, "timegreta": 0, "sssss": 0, "number": 0, "millisecond": 0, "timemaud": 0, "timesec": 0, "x": 0, "rai": 0, "center": 0, "val": 0, "cxotimelik": 0, "val_out": 0, "date2greta": 0, "potenti": 0, "out": 0, "byte": 0, "list": 0, "ndarrai": 0, "np": 0, "date2jd": 0, "date2maud": 0, "greta2d": 0, "greta2maud": 0, "greta2sec": 0, "jd2date": 0, "jd2greta": 0, "jd2maud": 0, "jd2sec": 0, "maude2d": 0, "maude2greta": 0, "maude2jd": 0, "maude2sec": 0, "print_time_convers": 0, "entry_point": 0, "secs2jd": 0, "secs2maud": 0}, "objects": {"cxotime": [[0, 0, 0, "-", "convert"], [0, 0, 0, "-", "cxotime"]], "cxotime.convert": [[0, 1, 1, "", "convert_time_format"], [0, 1, 1, "", "date2greta"], [0, 1, 1, "", "date2jd"], [0, 1, 1, "", "date2maude"], [0, 1, 1, "", "date2secs"], [0, 1, 1, "", "greta2date"], [0, 1, 1, "", "greta2jd"], [0, 1, 1, "", "greta2maude"], [0, 1, 1, "", "greta2secs"], [0, 1, 1, "", "jd2date"], [0, 1, 1, "", "jd2greta"], [0, 1, 1, "", "jd2maude"], [0, 1, 1, "", "jd2secs"], [0, 1, 1, "", "maude2date"], [0, 1, 1, "", "maude2greta"], [0, 1, 1, "", "maude2jd"], [0, 1, 1, "", "maude2secs"], [0, 1, 1, "", "print_time_conversions"], [0, 1, 1, "", "secs2date"], [0, 1, 1, "", "secs2greta"], [0, 1, 1, "", "secs2jd"], [0, 1, 1, "", "secs2maude"]], "cxotime.cxotime": [[0, 2, 1, "", "CxoTime"], [0, 2, 1, "", "TimeDate"], [0, 2, 1, "", "TimeFracYear"], [0, 2, 1, "", "TimeGreta"], [0, 2, 1, "", "TimeMaude"], [0, 2, 1, "", "TimeSecs"]], "cxotime.cxotime.CxoTime": [[0, 3, 1, "", "get_conversions"], [0, 3, 1, "", "now"], [0, 3, 1, "", "print_conversions"]], "cxotime.cxotime.TimeDate": [[0, 3, 1, "", "set_jds"], [0, 3, 1, "", "to_value"]], "cxotime.cxotime.TimeFracYear": [[0, 3, 1, "", "to_value"], [0, 4, 1, "", "value"]], "cxotime.cxotime.TimeGreta": [[0, 3, 1, "", "to_value"]], "cxotime.cxotime.TimeMaude": [[0, 3, 1, "", "to_value"]]}, "objtypes": {"0": "py:module", "1": "py:function", "2": "py:class", "3": "py:method", "4": "py:property"}, "objnames": {"0": ["py", "module", "Python module"], "1": ["py", "function", "Python function"], "2": ["py", "class", "Python class"], "3": ["py", "method", "Python method"], "4": ["py", "property", "Python property"]}, "titleterms": {"chandra": 0, "specif": 0, "astropi": 0, "time": 0, "class": 0, "basic": 0, "initi": 0, "guess": 0, "specifi": 0, "format": 0, "fast": 0, "convers": 0, "between": 0, "convert_time_format": 0, "conveni": 0, "function": 0, "like": 0, "secs2dat": 0, "print": 0, "common": 0, "compat": 0, "datetim": 0, "api": 0, "doc": 0, "cxotim": 0, "convert": 0}, "envversion": {"sphinx.domains.c": 2, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 8, "sphinx.domains.index": 1, "sphinx.domains.javascript": 2, "sphinx.domains.math": 2, "sphinx.domains.python": 3, "sphinx.domains.rst": 2, "sphinx.domains.std": 2, "sphinx.ext.viewcode": 1, "sphinx": 57}, "alltitles": {"Chandra-specific astropy Time class": [[0, "chandra-specific-astropy-time-class"]], "Basic initialization": [[0, "basic-initialization"]], "Guessing and specifying the format": [[0, "guessing-and-specifying-the-format"]], "Fast conversion between formats": [[0, "fast-conversion-between-formats"]], "convert_time_format": [[0, "convert-time-format"]], "Convenience functions like secs2date": [[0, "convenience-functions-like-secs2date"]], "Print common time conversions": [[0, "print-common-time-conversions"]], "Compatibility with DateTime": [[0, "compatibility-with-datetime"]], "API docs": [[0, "api-docs"]], "Cxotime": [[0, "module-cxotime.cxotime"]], "Converters": [[0, "module-cxotime.convert"]]}, "indexentries": {"cxotime (class in cxotime.cxotime)": [[0, "cxotime.cxotime.CxoTime"]], "timedate (class in cxotime.cxotime)": [[0, "cxotime.cxotime.TimeDate"]], "timefracyear (class in cxotime.cxotime)": [[0, "cxotime.cxotime.TimeFracYear"]], "timegreta (class in cxotime.cxotime)": [[0, "cxotime.cxotime.TimeGreta"]], "timemaude (class in cxotime.cxotime)": [[0, "cxotime.cxotime.TimeMaude"]], "timesecs (class in cxotime.cxotime)": [[0, "cxotime.cxotime.TimeSecs"]], "convert_time_format() (in module cxotime.convert)": [[0, "cxotime.convert.convert_time_format"]], "cxotime.convert": [[0, "module-cxotime.convert"]], "cxotime.cxotime": [[0, "module-cxotime.cxotime"]], "date2greta() (in module cxotime.convert)": [[0, "cxotime.convert.date2greta"]], "date2jd() (in module cxotime.convert)": [[0, "cxotime.convert.date2jd"]], "date2maude() (in module cxotime.convert)": [[0, "cxotime.convert.date2maude"]], "date2secs() (in module cxotime.convert)": [[0, "cxotime.convert.date2secs"]], "get_conversions() (cxotime.cxotime.cxotime method)": [[0, "cxotime.cxotime.CxoTime.get_conversions"]], "greta2date() (in module cxotime.convert)": [[0, "cxotime.convert.greta2date"]], "greta2jd() (in module cxotime.convert)": [[0, "cxotime.convert.greta2jd"]], "greta2maude() (in module cxotime.convert)": [[0, "cxotime.convert.greta2maude"]], "greta2secs() (in module cxotime.convert)": [[0, "cxotime.convert.greta2secs"]], "jd2date() (in module cxotime.convert)": [[0, "cxotime.convert.jd2date"]], "jd2greta() (in module cxotime.convert)": [[0, "cxotime.convert.jd2greta"]], "jd2maude() (in module cxotime.convert)": [[0, "cxotime.convert.jd2maude"]], "jd2secs() (in module cxotime.convert)": [[0, "cxotime.convert.jd2secs"]], "maude2date() (in module cxotime.convert)": [[0, "cxotime.convert.maude2date"]], "maude2greta() (in module cxotime.convert)": [[0, "cxotime.convert.maude2greta"]], "maude2jd() (in module cxotime.convert)": [[0, "cxotime.convert.maude2jd"]], "maude2secs() (in module cxotime.convert)": [[0, "cxotime.convert.maude2secs"]], "module": [[0, "module-cxotime.convert"], [0, "module-cxotime.cxotime"]], "now() (cxotime.cxotime.cxotime class method)": [[0, "cxotime.cxotime.CxoTime.now"]], "print_conversions() (cxotime.cxotime.cxotime method)": [[0, "cxotime.cxotime.CxoTime.print_conversions"]], "print_time_conversions() (in module cxotime.convert)": [[0, "cxotime.convert.print_time_conversions"]], "secs2date() (in module cxotime.convert)": [[0, "cxotime.convert.secs2date"]], "secs2greta() (in module cxotime.convert)": [[0, "cxotime.convert.secs2greta"]], "secs2jd() (in module cxotime.convert)": [[0, "cxotime.convert.secs2jd"]], "secs2maude() (in module cxotime.convert)": [[0, "cxotime.convert.secs2maude"]], "set_jds() (cxotime.cxotime.timedate method)": [[0, "cxotime.cxotime.TimeDate.set_jds"]], "to_value() (cxotime.cxotime.timedate method)": [[0, "cxotime.cxotime.TimeDate.to_value"]], "to_value() (cxotime.cxotime.timefracyear method)": [[0, "cxotime.cxotime.TimeFracYear.to_value"]], "to_value() (cxotime.cxotime.timegreta method)": [[0, "cxotime.cxotime.TimeGreta.to_value"]], "to_value() (cxotime.cxotime.timemaude method)": [[0, "cxotime.cxotime.TimeMaude.to_value"]], "value (cxotime.cxotime.timefracyear property)": [[0, "cxotime.cxotime.TimeFracYear.value"]]}}) \ No newline at end of file

    Format

    Example