R/lst.R

`lst` <-
function (...,lambda=getOption("longitude")) 
{
	gstime = gst(...);

	if (is.null(lambda)) 
			{
			lambda = 0;
			warning("Your longitude is not set in the environment, assuming it is equal to 0");
			}

	gstime = gstime + lambda/15;
	gstime = gstime %% 24;

	class(gstime)=c("lst","time");
	return(gstime);
	
}

Try the moonsun package in your browser

Any scripts or data that you put into this service are public.

moonsun documentation built on May 29, 2017, 12:17 p.m.