1#include <iostream> 2 3#include <time.h> 4 5#include <String.h> 6#include <TimeFormat.h> 7 8int 9main() 10{ 11 BTimeFormat timeFormatter; 12 BString str; 13 14 if (timeFormatter.Format(123456, &str) != B_OK) { 15 std::cout << "Conversion error\n"; 16 return -1; 17 } 18 19 std::cout << str.String() << std::endl; 20 return 0; 21} 22