ASP Julian Second

They have: 82 posts

Joined: Oct 2001

Anyone know how to get the Julian Second in ASP?

Thanks,

- Mike

Peter J. Boettcher's picture

They have: 812 posts

Joined: Feb 2000

I didn't even know there were Julian seconds!

They have: 601 posts

Joined: Nov 2001

You mean Julian Date?

<%
d0=DateSerial ("2000", "1", "1")
d1=Date - d0 + 1
Response.write "Today's Julian Date Is #" & d1
%>
Outputs : Today's Julian Date Is #38
'

- wil

They have: 82 posts

Joined: Oct 2001

No I mean Julian Second.

The number of seconds passed since 1/1/1970 12:00 A.M.

The C++ equivalent is:

t=time(NULL);

Any Ideas?

Thanks,
- Mike

Peter J. Boettcher's picture

They have: 812 posts

Joined: Feb 2000

DateDiff will give you the seconds but I don't think that's what you're looking for:

DateDiff("s", Now(), SomeDate)

They have: 82 posts

Joined: Oct 2001

That's great but once we hit Daylight Savings Time it will be off an hour.

Thanks,

- Mike

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.