views:

39

answers:

1

Hello All:

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;
        }
A: 

you could use TimeSpan like this:

TimeSpan ts = TimeSpan.MinValue;
ibram