Subversion Repositories HomeAutomation

Rev

Rev 1008 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 1008 Rev 1011
Line 34... Line 34...
34
    result += lpad(itos(tmStruct.tm_min), 2, '0');
34
    result += lpad(itos(tmStruct.tm_min), 2, '0');
35
    result += ":";
35
    result += ":";
36
    result += lpad(itos(tmStruct.tm_sec), 2, '0');
36
    result += lpad(itos(tmStruct.tm_sec), 2, '0');
37
 
37
 
38
    return result;
38
    return result;
-
 
39
}
-
 
40
 
-
 
41
unsigned int hex2uint(string hex)
-
 
42
{
-
 
43
    return bin2uint(hex2bin(hex));
39
}
44
}
40
 
45
 
41
unsigned int bin2uint(string bin)
46
unsigned int bin2uint(string bin)
42
{
47
{
43
    unsigned int num = 0;
48
    unsigned int num = 0;