| 471 | //========================================================================== |
| 472 | |
| 473 | const char *myasctime () |
| 474 | { |
| 475 | static char readabletime[50]; |
| 476 | time_t clock; |
| 477 | struct tm *lt; |
| 478 | |
| 479 | time (&clock); |
| 480 | lt = localtime (&clock); |
| 481 | if (lt != NULL) |
| 482 | { |
| 483 | strftime(readabletime, 50, "%F %T", lt); |
| 484 | return readabletime; |
| 485 | } |
| 486 | else |
| 487 | { |
| 488 | return "Unknown\n"; |
| 489 | } |
| 490 | } |
| 491 | |
| 492 | //========================================================================== |
| 493 | // |
no outgoing calls
no test coverage detected