PHP-GTK2 Cookbook Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Time and Date (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Time and Date


#1755
redback (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Time and Date 4 Years, 2 Months ago Karma: 0  
Hello,

Is it possible to display the time in dd/mm/yyyy?

Also is it possible to have the time offset in half hours ie ^AORD(+18.5) as the time difference in Australia is currently 18.5 hours.

Thanks
 
  The administrator has disabled public write access.

#1760
kksou (Admin)
Admin
Posts: 1676
graph
User Online Now Click here to see the profile of this user
Re:Time and Date 4 Years, 2 Months ago Karma: 27  
Hi,

Are you familiar with PHP?

Can I teach you how to change the code directly?

To customize just for you might take just 3 minutes.

But to make it generic as a parameter will take a couple of hours...

Regards,
/kksou
 
  The administrator has disabled public write access.

#1763
redback (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Re:Time and Date 4 Years, 2 Months ago Karma: 0  
I am not a programmer but I am sure I could follow your instructions.
 
  The administrator has disabled public write access.
#2095
taruntm (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
Re:Time and Date 3 Years, 11 Months ago Karma: 0  
I had the same problem for Indian Standard Time. Here is how you fix it :

1. Open /modules/mod_yahoostockquote/mod_yahoostockquote_lib.php

2. SEARCH and replace $t22_str = "$t21 $offset hours"; WITH
$t22_str = "$t21 $offset minutes";

3. In the backend, open the module settings and type in the minutes instead of hours that you need to offset. For Example, I used ^NSEI(+570IST) to display in Indian Standard Time which was ET +9.5 Hours.

Easy right?? PHP rocks :D

Regards

Tarun Markose www.teemac.in
 
  The administrator has disabled public write access.
#2264
kksou (Admin)
Admin
Posts: 1676
graph
User Online Now Click here to see the profile of this user
Re:Time and Date 3 Years, 10 Months ago Karma: 27  
Hi,

Please download the latest version (v1.5.7).
Yahoo Stock Quote (AJAX module version)

In the parameters page, you can now set the date format using standard PHP date format. For your case, use d/m/Y (with leading zeros) or j/n/Y (without leading zeros).

Sorry I missed out your request to allow time offset in half hours. Will definitely add this in the next release.

Regards,
/kksou
 
 
Last Edit: 2009/06/26 18:42 By kksou.
  The administrator has disabled public write access.
#2557
kksou (Admin)
Admin
Posts: 1676
graph
User Online Now Click here to see the profile of this user
Re:Time and Date 3 Years, 8 Months ago Karma: 27  
redback wrote:
Also is it possible to have the time offset in half hours ie ^AORD(+18.5) as the time difference in Australia is currently 18.5 hours.

Hi,

Sincerely apologize for the delay.

Please download the latest version v1.58.
http://www.kksou.com/php-gtk2/Joomla-Gadgets/Yahoo-Stock-Quote-AJAX-version.php

For half-hour offset, use
^AORD(+18:30)

Regards,
/kksou
 
  The administrator has disabled public write access.



Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Blog - Forum - Privacy Policy - Contact Us
Links - Classes - Social Business - BPM - Web - General
Copyright © 2006-2013. kksou.com. All Rights Reserved