DaysBetweenTimeRangePreset

DaysBetweenTimeRangePreset(TimeinputBirthTime,stringtimePreset,TimeSpanoutputTimezone)

Calculates the number of days represented by a time preset. The method 1. converts the preset into a cTimeRangec using cAutoCalculateTimeRange...c 2. measures the total days between the start and end 3. rounds the result to two decimal places. This is used by the web UI and API when estimating chart ranges or precision needs.

Parameters

NameTypeDescription
inputBirthTime Time The reference birth time.
timePreset String The preset string to interpret.
outputTimezone TimeSpan The timezone to use while constructing the range.

Calling this method

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

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…