entity message_logs: cuid{
sending_time : DateTime;
supplier_id: String(30);
supplier_name : String(40);
pur_org : String(40);
sending_status: String(10);
}
service MessageService {
view Logs as select from model.message_logs{
sending_time, supplier_id, supplier_name, pur_org, sending_status
}
}
If we want to transform the time zone of the field "sending_time",we can use function "LOCALTOUTC(t,timezone)" .
service MessageService {
view Logs as select from model.message_logs{
LOCALTOUTC(sending_time,'EST') as sending_time, supplier_id, supplier_name, pur_org, sending_status
}
}
service MessageService {
view Logs as select from model.message_logs{
ADD_SECONDS(LOCALTOUTC(sending_time,'UTC'),60*60*9) as sending_time, supplier_id, supplier_name, pur_org, sending_status
}
}
service MessageService {
view Logs as select from model.message_logs{
to_char(ADD_SECONDS(LOCALTOUTC(sending_time,'UTC'),60*60*9),'YYYY/MM/DD HH24:MI:SS') as sending_time_format:String, supplier_id, supplier_name, pur_org, sending_status
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
4 | |
2 | |
2 | |
2 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 |