我可以使用to_date('2019-12-06 04:21:13', 'YYYY-MM-DD HH24:MI:SS')
来获取日期,但是我以"2019-12-06 04:21:13.0"
作为输入日期。
我也不知道最后0是什么意思,
ORA-01861:文字与格式字符串不匹配
我尝试过的格式。
答案 0 :(得分:1)
这里有两个选择。首先,var apn = require('apn')
var util = require('util')
// Set up apn with the APNs Auth Key:
var apnProvider = new apn.Provider({
token: {
key: '____', // Path to the key p8 file
keyId: '____', // The Key ID of the p8 file (available at https://developer.apple.com/account/ios/certificate/key)
teamId: '____', // The Team ID of your Apple Developer Account (available at https://developer.apple.com/account/#/membership/)
},
production: false // Set to true if sending a notification to a production iOS app
});
// Enter the device token from the Xcode console:
var deviceToken = '____';
// Prepare a new notification:
var notification = new apn.Notification();
// Bundle ID:
notification.topic = '____';
// It works:
notification.category = "MEETING_INVITATION";
notification.alert = {"title":"React with push","body":"Tap to see actions about that push."};
// It doesn't work:
// notification.payload = {"aps":{"category":"MEETING_INVITATION","alert":{"title":"React with push","body":"Tap to see actions about that push."}}};
apnProvider.send(notification, deviceToken).then(function(result) {
// Check the result for any failed devices
console.log(util.inspect(result, true, 7, true));
});
不支持几分之一秒。因此,如果您需要此信息,请转换为date
:
timestamp
否则,请删除字符串的该部分:
select to_timestamp('2019-12-06 04:21:13.0', 'YYYY-MM-DD HH24:MI:SS.FF')