ColorToString
It converts color value into string of “R,G,B” form.
string ColorToString(
color color_value, // color value
bool color_name // show color name or not
);
Parameters
color_value
[in] Color value in color type variable.
color_name
[in] Return color name if it is identical
string DoubleToStr(double value, int digits)
ある数値を指定された桁数で変換し、その文字列型を返す。
parameters:
value - 数値
digits - 精度、小数点以下の桁数 (0-8)
Sample:
string value=DoubleToStr(1.28473418, 5);
// the value is “1.28473”
datetime StrToTime(string value)
"yyyy.mm.dd hh:mi"形式の文字列をdatetime型に変換する (1970年1月1日からの経過秒)
parameters:
value - "yyyy.mm.dd hh:mi"のような日付形式の文字列
Sample:
datetime var1;
var1=StrToTime(“2003.8.12 17:35”);
var1=StrToTime(“17:35”); // returns the current date with the given tim
string TimeToStr(datetime value, int mode=TIME_DATE|TIME_MINUTES)
1970年1月1日からの経過秒を"yyyy.mm.dd hh:mi"形式に変換する
parameters:
value - 1970年1月1日 0:00からの経過時間
mode - 文字列の出力モード。以下の中の組み合わせ:
TIME_DATE "yyyy.mm.dd"形式
TIME_MINUTES gets result as "hh:mi"形式
TIME_SECONDS gets re