The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Coding - Time Suggestion/Where is it?

View previous topic View next topic Go down

Coding - Time Suggestion/Where is it?

Post by mgt98 on June 8th 2011, 11:48 am

I suppose this isn't coding for a html, but the things like { USERNAME } or { FORUMAGE } are really helpful.

I am asking for help on finding/suggesting making one that would be {TIME 24/11/98 08:00} and then it would work out the timezones for the users and on my forum, when doing our betting system we can specify a date and time that would change to the user's timezone. Therefore giving them an idea of when the match starts ect.


If this is in the wrong section, move it there moderators but please don't lock. I am hoping for some answers. If there is a thread for this, I searched and am sorry if there is one.


Last edited by mgt98 on June 8th 2011, 11:53 am; edited 1 time in total (Reason for editing : Post was edited, post made no sense)

mgt98
Forumember

Male Posts : 344
Reputation : 45
Language : English

Back to top Go down

Re: Coding - Time Suggestion/Where is it?

Post by Mr_Waffle on June 8th 2011, 12:21 pm

If it's on a HTML page or it allows HTML, you can use the javascript object Date();

See here for more info: http://www.w3schools.com/js/js_obj_date.asp

Mr_Waffle
New Member

Posts : 24
Reputation : 0
Language : Dutch | HTML | CSS | JavaScript | jQuery | Java | MIPS ASM | Learning C#

Back to top Go down

Re: Coding - Time Suggestion/Where is it?

Post by mgt98 on June 8th 2011, 12:59 pm

Doesn't work....

mgt98
Forumember

Male Posts : 344
Reputation : 45
Language : English

Back to top Go down

Re: Coding - Time Suggestion/Where is it?

Post by Mr_Waffle on June 8th 2011, 1:08 pm

And why doesn't it work? Because it's not in a HTML page or because you don't know how to use it?

Mr_Waffle
New Member

Posts : 24
Reputation : 0
Language : Dutch | HTML | CSS | JavaScript | jQuery | Java | MIPS ASM | Learning C#

Back to top Go down

Re: Coding - Time Suggestion/Where is it?

Post by mgt98 on June 8th 2011, 1:12 pm

Most likely both.

Also, if I enter a time, will it change and react to timezones and change for the members I have in England and America?

mgt98
Forumember

Male Posts : 344
Reputation : 45
Language : English

Back to top Go down

Re: Coding - Time Suggestion/Where is it?

Post by Mr_Waffle on June 8th 2011, 1:34 pm

You can enter a time in miliseconds, and let a script convert that to their respective timezones.

Mr_Waffle
New Member

Posts : 24
Reputation : 0
Language : Dutch | HTML | CSS | JavaScript | jQuery | Java | MIPS ASM | Learning C#

Back to top Go down

Re: Coding - Time Suggestion/Where is it?

Post by mgt98 on June 8th 2011, 2:20 pm

It just comes up with a code and doesn't show the time.

mgt98
Forumember

Male Posts : 344
Reputation : 45
Language : English

Back to top Go down

Re: Coding - Time Suggestion/Where is it?

Post by Mr_Waffle on June 8th 2011, 4:02 pm

Could you post the code you used here?

Mr_Waffle
New Member

Posts : 24
Reputation : 0
Language : Dutch | HTML | CSS | JavaScript | jQuery | Java | MIPS ASM | Learning C#

Back to top Go down

Re: Coding - Time Suggestion/Where is it?

Post by Darren1 on June 9th 2011, 5:39 am

Hi,

You can change the type of display that time has, via your profile > Preferences.

Darren1
Helper
Helper

Male Posts : 11853
Reputation : 563
Language : English

Back to top Go down

Re: Coding - Time Suggestion/Where is it?

Post by mgt98 on June 9th 2011, 7:12 am

@Mr_Waffle wrote:Could you post the code you used here?
new Date(2011, 06, 11, 23, 15, 17, 13)
@Darren1 wrote:Hi,

You can change the type of display that time has, via your profile > Preferences.
Ah?!?!?

mgt98
Forumember

Male Posts : 344
Reputation : 45
Language : English

Back to top Go down

Re: Coding - Time Suggestion/Where is it?

Post by Darren1 on June 9th 2011, 7:15 am

In your navigation bar, do you see the button "Profile" click on it, then click on "preferences" and then choose your time, then you can proceed to Admin panel >> General Forum/configuration > "Date format :" and choose the preset Smile

Good to see another Aussie 'round here Very Happy

Darren1
Helper
Helper

Male Posts : 11853
Reputation : 563
Language : English

Back to top Go down

Re: Coding - Time Suggestion/Where is it?

Post by mgt98 on June 9th 2011, 12:09 pm

It is good to see me Very Happy

I mean't is there a code that'll show the time, then as another user looks at it will change time for their time zone?

Something like { USERNAME }. For example - Using php in posts is called being a smart ass... Stop it -> Say Darren1 for you, doesn't for me...

Just something that changes the time as different users look at it.

mgt98
Forumember

Male Posts : 344
Reputation : 45
Language : English

Back to top Go down

Re: Coding - Time Suggestion/Where is it?

Post by Darren1 on June 9th 2011, 12:35 pm

Do you mean to respond to each person's different time zones?

I'm not quite following you, so maybe a screenshot might help.

Darren1
Helper
Helper

Male Posts : 11853
Reputation : 563
Language : English

Back to top Go down

Re: Coding - Time Suggestion/Where is it?

Post by mgt98 on June 9th 2011, 2:56 pm

Yeah, so it responds with the timezones.

mgt98
Forumember

Male Posts : 344
Reputation : 45
Language : English

Back to top Go down

Re: Coding - Time Suggestion/Where is it?

Post by mgt98 on June 10th 2011, 12:17 pm

So, basically this.

mgt98
Forumember

Male Posts : 344
Reputation : 45
Language : English

Back to top Go down

Re: Coding - Time Suggestion/Where is it?

Post by mgt98 on June 11th 2011, 8:50 am

Anyone?

mgt98
Forumember

Male Posts : 344
Reputation : 45
Language : English

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum