AutoCalculateTimeRange

AutoCalculateTimeRange(TimeinputBirthTime,stringtimePreset,TimeSpanoutputTimezone)

Builds a cTimeRangec automatically from a compact btime preset stringb. This method supports several preset styles including simple relative spans such as c3daysc c2yearsc cweekc or cmonthc year ranges such as c19902000c age ranges such as cage1to50c special presets such as cfulllifec The method 1. uses the birth location from cinputBirthTimec 2. interprets the requested output timezone as the display or client timezone 3. detects which preset style was supplied 4. routes the request to the matching preset parser 5. returns the resulting cTimeRangec.

Parameters

NameTypeDescription
inputBirthTime Time The reference birth time used both for location context and for agebased calculations.
timePreset String A preset string describing the desired range.
outputTimezone TimeSpan The output timezone to use when constructing the returned time values.

Calling this method

Endpoint base: https://api.vedastro.org/api/Calculate/AutoCalculateTimeRange

Most Calculate methods accept parameters either as URL path segments (GET) or as a JSON body (POST), keyed by parameter name. The exact request shape varies per method — see the Getting Started guide for the response envelope, StdTime format, and Ayanamsa conventions that apply across the API. Use the "Try it" panel below to build and send a real request and see the exact call this method expects.

Loading try-it widget…