Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

8026 Posts in 1851 Topics- by 2099 Members - Latest Member: roi
Pages: [1]   Go Down
Print
Author Topic: Time display  (Read 324 times)
0 Members and 1 Guest are viewing this topic.
Phil
New Member
*

Karma: 0
Offline Offline

Posts: 0

Retired


WWW
« on: January 10, 2004, 07:04:00 PM »

Hello.
The format of the Time on my Events page is a strange format, mine reads like Time:1073781570

Why would it display like this.Can anyone help please?.

Thanks
Phil

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 221

Please don't PM me. Post in the open forum.


WWW
« Reply #1 on: January 11, 2004, 01:47:00 PM »

** Why would it display like this. **

That is a Unix timestamp which is the number of seconds since Jan.1,1970 GMT. That is how CalendarScript (and many other programs) record dates.

Unix Date-Time Converter

Dan O.


------- Link Updated -----------

[This message has been edited by DanO (edited April 09, 2007).]

Logged
Phil
New Member
*

Karma: 0
Offline Offline

Posts: 0

Retired


WWW
« Reply #2 on: January 12, 2004, 02:49:00 AM »

Thankyou for your reply.
Would it be a fairly easy task to integrate a converter into the Calendar script so that it shows 'proper' date and time?.
This is so all users viewing an event could see what time & date that event was posted.

Thanks
Phil

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 221

Please don't PM me. Post in the open forum.


WWW
« Reply #3 on: January 13, 2004, 02:00:00 PM »

** Would it be a fairly easy task to integrate a converter into the Calendar script so that it shows 'proper' date and time?. **

Perl has built in routines for doing it but the CalendarScript 'offset' has to be taken into account and also the recorded times being in GMT. Calendar script does that in a number of places to display a proper human readable date format.

BTW. The times stored in the event record (which I assume you are attempting to display) is the time the event was entered, not necessarily the time the event is scheduled for. That information is stored in the schedule database, not the event database.

Maybe the previous forum message "Adding Date and Time to Event View" will shed some light on your delima?

Dan O.


[This message has been edited by DanO (edited January 14, 2004).]

Logged
Phil
New Member
*

Karma: 0
Offline Offline

Posts: 0

Retired


WWW
« Reply #4 on: January 14, 2004, 04:19:00 PM »

I do wish to show the time the event was 'entered' not when it is scheduled for.
I am evaluating this script for use a simple online reservations system that is shared by 3 agents who represent a single property but they are in different parts of the world. The idea being that, at a glance, each can tell if the property is Let or not for a particular week.

They each have a number of local agents who would be able to enter reservations and i would like to track and display the name of the inputter and the time they input the reservation (just to avoid any arguments over who did what & when in the event of a double booking!!)

The countries are the UK the USA & Mexico but all will be timed at GMT

Phil

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 221

Please don't PM me. Post in the open forum.


WWW
« Reply #5 on: January 14, 2004, 06:13:00 PM »

** I do wish to show the time the event was 'entered' ... just to avoid any arguments over who did what & when in the event of a double booking!  **

Well, the smaller the Unix time code, the earlier the event was posted.

** each can tell if the property is Let or not for a particular week. **

TubaDave has created the 'NoOverlap' plug-in which will stop the posting of events if one has already been scheduled. Maybe that would solve your problem? You can get it from the Unofficial CalendarScript - Mods and Plugins site.

Dan O.

[This message has been edited by DanO (edited January 14, 2004).]

Logged
Pages: [1]   Go Up
Print
Jump to: