projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
0610218
)
UpdateCurrencyRate.php
author
Alan Knowles
<alan@roojs.com>
Mon, 5 Oct 2015 08:29:40 +0000
(16:29 +0800)
committer
Alan Knowles
<alan@roojs.com>
Mon, 5 Oct 2015 08:29:40 +0000
(16:29 +0800)
UpdateCurrencyRate.php
patch
|
blob
|
history
diff --git
a/UpdateCurrencyRate.php
b/UpdateCurrencyRate.php
index
0cb3f31
..
54bed5c
100644
(file)
--- a/
UpdateCurrencyRate.php
+++ b/
UpdateCurrencyRate.php
@@
-37,6
+37,11
@@
class Pman_Core_UpdateCurrencyRate extends Pman
DB_DataObject::DebugLevel(1);
$d = DB_DataObject::Factory('core_curr_rate');
$d->loadRates();
+
+ $hkd = $d->convert(1,'USD','HKD');
+
+ echo "1 USD is ~ $hkd HKD (should be aobut 7.8)\n ";
+
die("done");