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;
精彩评论