我需要强制我的java应用程序在特定的日期和时间上执行几个操作。设想情况如下:
1- user set a specific time and frequency (every day, every month)
2- system starts a trigger for the request
3- once that pre-defined frequency and time are reached
3.1 - system performs the required actions that are kept in a method
我找到了这个,但没能让它工作。
最好举一个例
当我尝试在linux上通过FreeTDS bcp插入日期时,我遇到了这个错误: Conversion failed when converting date and/or time from character string. create table test (c_date date); 此列的绑定类型为SYBCHAR,在windows上没有问题,但我使用WinApi ...
char buff[10];
time_t time = ACE_OS::time(nullptr);
struct tm *tmp = localtime(&time);
strftime(buff, 1