extern int xeapi1(struct tm *local);