src/umbraco.presentation.xslt.Exslt/ExsltDatesAndTimes.cs
/// <summary>
/// Implements the following function
///		number date:seconds()
/// </summary>
/// <returns>The amount of seconds since the epoch (1970-01-01T00:00:00Z)</returns>
Implements the following function
number date:seconds()
Implements the following function number date : seconds ()
public static double  seconds(){
			try{
			DateTime epoch  = new DateTime(1970, 1, 1, 0,0,0,0, CultureInfo.CurrentCulture.Calendar);
			TimeSpan duration = DateTime.Now.Subtract(epoch); 
			return duration.TotalSeconds; 
			}catch(Exception){
				return System.Double.NaN; 
			} 
		}
public static double seconds ( ) { try { DateTime epoch = new DateTime ( 1970 , 1 , 1 , 0 , 0 , 0 , 0 , CultureInfo . CurrentCulture . Calendar ) ; TimeSpan duration = DateTime . Now . Subtract ( epoch ) ; return duration . TotalSeconds ; } catch ( Exception ) { return System . Double . NaN ; } }
Implements the following function
number date:seconds()
Implements the following function number date : seconds ()
None