Amrita Gadiyas and Varjyam are specific time periods determined based on the Nakshatram (lunar mansion) of the day. These time intervals are significant in Vedic astrology:
-
Amrita Gadiyas: Considered an auspicious period for initiating activities.
-
Varjyam: An inauspicious period during which important tasks should be avoided.
Both these periods depend on the duration of the Nakshatram of the day and are calculated proportionally.
Given a Nakshatram, the formulas to determine the starting times and duration of Amrita Gadiyas and Varjyam are:
Starting Time Formula: Starting Time of Nakshatram + (x/24) * Duration of Nakshatram
Duration Formula: Duration of Nakshatram * (1.6/24)
Where X is a predefined constant specific to each Nakshatram (see the table below).
Given Data:
Nakshatram: Aswini
Starting Time: 6:30 AM
Ending Time: 8:00 AM next day
Duration of Nakshatram: 25 hours 30 minutes (25.5 hours)
Starting Time = 6.5 + (16.8 × 25.5) / 24 = 6.5 + 17.85 = 24.35 hours (which is 12:21 AM next day)
Duration = (25.5 × 1.6) / 24 = 1.7 hours = 1 hour 42 minutes
Starting Time = 6.5 + (20 × 25.5) / 24 = 6.5 + 21.25 = 27.75 hours (which is 3:45 AM next day)
Duration = 1 hour 42 minutes (same formula as above)
-
Auspicious Activity Planning: Amrita Gadiyas are suitable for important events like weddings, business deals, and travel.
-
Avoiding Inauspicious Timing: Varjyam should be avoided for new ventures, surgeries, or crucial tasks.
R functions to compute important Panchangam timings based on sunrise and sunset for a given location and date. The key functions calculate:
- Rahu Kalam
- Gulika Kalam
- Yama Gandam
- Durmuhurtham
Each function utilizes astronomical principles and follows the standard calculation method found in Indian Panchangam.
These time periods are considered significant in Hindu astrology:
-
Rahu Kalam: Inauspicious period ruled by Rahu. Avoid starting new ventures.
-
Gulika Kalam: Neutral period, suitable for routine tasks but not for auspicious activities.
-
Yama Gandam: Inauspicious period, avoid starting important tasks.
-
Durmuhurtham: Considered inauspicious, often avoided for major decisions or events.
-
calc_rahu_kalam(sunrise, sunset, day)
Start Time = Sunrise + Duration of the Day × FactorDuration = Duration of the Day × 0.125
-
calc_gulika_kalam(sunrise, sunset, day)
Start Time = Sunrise + Duration of the Day × FactorDuration = Duration of the Day × 0.125
-
calc_yama_gandam(sunrise, sunset, day)
Start Time = Sunrise + Duration of the Day × FactorDuration = Duration of the Day × 0.125
-
calc_durmuhurtham(sunrise, duration_day)
First Start Time = Sunrise + Duration of the Day × (10.4 / 12)Second Start Time = Sunrise + Duration of the Day × (6.4 / 12)Duration = Duration of the Day × (0.8 / 12)
DummyPackage is an R package designed for demonstration purposes, containing a set of dummy functions for string and numeric calculations. The package serves as a template for learning and experimenting with R package development, function structuring, and documentation.
To use DummyPackage, you can install it from the source folder where it is located.
# Install the package from the local directory
git clone https://github.com/SKG24/VedicDateTime.git
install.packages("Dummy_Package", repos = NULL, type = "source")
# Load the package
library(DummyPackage)
- dummy_function1
dummy_function1 <- function() {
return("Hello from function 1!")
}
- dummy_function2
dummy_function2 <- function(x) {
return(x^2)
}
- dummy_function3
dummy_function3 <- function(a, b) {
return(paste(a, b))
}
- dummy_function4
dummy_function4 <- function(n) {
return(seq(1, n))
}
- dummy_function5
dummy_function5 <- function(v) {
return(mean(v, na.rm = TRUE))
}
During package development, a note was encountered related to timezone recognition. This issue couldn't be resolved by explicitly setting the timezone in a system-recognized format:
Sys.setenv(TZ = "Asia/Kolkata")
This package is released under the MIT License.
Sanat Kumar Gupta ([email protected])






