Esempio n. 1
0
        /// <summary> Constructs a filter for Field <code>f</code> matching
        /// dates on or after <code>date</code>.
        /// </summary>
        public static DateFilter After(System.String field, System.DateTime date)
        {
            DateFilter result = new DateFilter(field);

            result.start = DateField.DateToString(date);
            return(result);
        }
Esempio n. 2
0
        /// <summary> Constructs a filter for Field <code>f</code> matching times
        /// on or before <code>time</code>.
        /// </summary>
        public static DateFilter Before(System.String field, long time)
        {
            DateFilter result = new DateFilter(field);

            result.end = DateField.TimeToString(time);
            return(result);
        }
Esempio n. 3
0
        /// <summary> Constructs a filter for Field <code>f</code> matching
        /// dates on or before before <code>date</code>.
        /// </summary>
        public static DateFilter Before(System.String field, System.DateTime date)
        {
            DateFilter result = new DateFilter(field);

            result.end = DateField.DateToString(date);
            return(result);
        }
Esempio n. 4
0
        /// <summary> Constructs a filter for Field <code>f</code> matching
        /// times on or after <code>time</code>.
        /// </summary>
        public static DateFilter After(System.String field, long time)
        {
            DateFilter result = new DateFilter(field);

            result.start = DateField.TimeToString(time);
            return(result);
        }
		/// <summary> Constructs a filter for Field <code>f</code> matching
		/// dates on or after <code>date</code>.
		/// </summary>
		public static DateFilter After(System.String field, System.DateTime date)
		{
			DateFilter result = new DateFilter(field);
			result.start = DateField.DateToString(date);
			return result;
		}
		/// <summary> Constructs a filter for Field <code>f</code> matching times
		/// on or before <code>time</code>.
		/// </summary>
		public static DateFilter Before(System.String field, long time)
		{
			DateFilter result = new DateFilter(field);
			result.end = DateField.TimeToString(time);
			return result;
		}
		/// <summary> Constructs a filter for Field <code>f</code> matching
		/// dates on or before before <code>date</code>.
		/// </summary>
		public static DateFilter Before(System.String field, System.DateTime date)
		{
			DateFilter result = new DateFilter(field);
			result.end = DateField.DateToString(date);
			return result;
		}
		/// <summary> Constructs a filter for Field <code>f</code> matching
		/// times on or after <code>time</code>.
		/// </summary>
		public static DateFilter After(System.String field, long time)
		{
			DateFilter result = new DateFilter(field);
			result.start = DateField.TimeToString(time);
			return result;
		}