实际工作中遇到的一个例子: 一.看这样一个方法: /** 传入以微秒(us)为单位的时间字符串,转换成可读的(年-月-日 时:分:秒)日期格式*/ public String getDateStringByUSString(String usStr) { long time = Long.parseLong(usStr.substring(0, usStr.length() - 3)); Date dateInd = new Date(time); SimpleDateFormat sdf =…
转载请注明出自天外归云的博客园:http://www.cnblogs.com/LanTianYou/ 对Recorded Item动态调用OM Methods进行测试,界面如下: 输入Site的URL,File在SharePoint中的相对URL,并选择OM操作类型,点击Test进行测试.代码如下: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; usi…
前言 python -c 命令还是有用的哈 正文 python的 -c 可以在命令行中调用 python 代码, 实际上 -c 就是 command 的意思 官方文档中解释为(节选自: python docs): Execute the Python code in command. command can be one or more statements separated by newlines, with significant leading whitespace as in norm…