开发者

JavatoC#(Timestamp)

开发者 https://www.devze.com 2023-01-17 13:32 出处:网络
I have this code in Java and I want to convert it to C#. Please help me. public virtual Timestamp getMinProstyTimeStamp(string sCurrFieldName, string sWellName)

I have this code in Java and I want to convert it to C#. Please help me.

public virtual Timestamp getMinProstyTimeStamp(string sCurrFieldName, string sWellName)
        {
            Timestamp tsMinDate = new Timestamp(0);
            // If field name have not changed, there is no need to recreate the qds
            if (!sFieldName.ToLower().Equals(sCurrFieldName))
            {
                createQdsWellAlias(sCurrFieldName);
            }
            QueryDataSet qds = getQdsWellAlias(sWellName);
            if (!qds.Empty)
            {
                tsMinDate = qds.getTimestamp("MINDATE");
            }
            return tsMinDate;
  开发者_高级运维      }


you could use TimeSpan like this:

TimeSpan ts = TimeSpan.MinValue;
0

精彩评论

暂无评论...
验证码 换一张
取 消