Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1488
News FAQ
Search Home


next up previous contents index
Next: quanta.tos - Function Up: quanta - Tool Previous: quanta.toangle - Function


quanta.splitdate - Function



Package general
Module quanta
Tool quanta


split a date/time into a record


Synopsis
splitdate(v)


Arguments

v in value
    Allowed: angle/time quantity or string


Returns
record


Description
splitdate splits a date/time quantity into a record with constituent fields like year, yearday, month etc. All fields will be integer (to enable use as index and easy personal formatting), with the exception of the s field which is a double float. See the example for the fields returned.



Example
- dq.splitdate('today')
[mjd=52075.0361, year=2001, yearday=166, month=6, monthday=15,
		  week=24, weekday=5, hour=0, min=52, sec=1,
		   s=1.24799991, msec=247, usec=247999] 
- dq.splitdate('183.33333333deg')
[mjd=0.509259259, year=1858, yearday=321, month=11, monthday=17,
		   week=46, weekday=3, hour=12, min=13, sec=19,
		    s=19.9999992, msec=999, usec=999999]





next up previous contents index
Next: quanta.tos - Function Up: quanta - Tool Previous: quanta.toangle - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-08-01