Creates a new {@link Sample} with time and text value specified

@param  time         time in milliseconds from 1970-01-01 00:00:00
@param  textValue    the text value of the sample
@return the Sample with specified fields
519060
public static Sample ofTimeText(long time, String textValue) {
        return new Sample(time, null, null, textValue);
    }
305189
public static long millis(final String time, final String timeUnit) {
      return TIMEUNITS.get(timeUnit).toMillis(Long.parseLong(time));
   }
688850
public Timecode addPrecise(SampleCount samples) throws ResamplingException
	{
		final SampleCount mySamples = getSampleCount();
		final SampleCount totalSamples = mySamples.addPrecise(samples);

		return TimecodeBuilder.fromSamples(totalSamples, dropFrame).build();
	}
208898
public String getAsShortText(int fieldValue, Locale locale) {
        return GJLocaleSymbols.forLocale(locale).dayOfWeekValueToShortText(fieldValue);
    }
1340417
public static boolean compare(Time aValue, Time bValue, CompareWay compareWay) {
        String value = Formatter.datetimeToCustomString(aValue, TIME_FORMAT);
        int result = value.compareTo(Formatter.datetimeToCustomString(bValue, TIME_FORMAT));
        switch (compareWay) {
            case EQ:
                return result == 0;
            case GT:
                return result > 0;
            default:
                return result < 0;
        }
    }
224999
public static TimestampFormatter createTimestampFormatter(final String pattern, final Locale locale) {
		return dialect.createTimestampFormatter(pattern, locale);
	}
8564
public static <T> TimestampedValue<T> from(StreamRecord<T> streamRecord) {
		if (streamRecord.hasTimestamp()) {
			return new TimestampedValue<>(streamRecord.getValue(), streamRecord.getTimestamp());
		} else {
			return new TimestampedValue<>(streamRecord.getValue());
		}
	}
806485
@Override
    public TextMessage createTextMessage() throws JMSRuntimeException {

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "createTextMessage");

        TextMessage textMessage = null;

        try {
            textMessage = jmsSession.createTextMessage();
        } catch (JMSException jmse) {
            throw (JMSRuntimeException) JmsErrorUtils.getJMS2Exception(jmse, JMSRuntimeException.class);
        } finally {
            if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
                SibTr.exit(this, tc, "createTextMessage", new Object[] { textMessage });
        }

        return textMessage;

    }
858792
public static String toDateString(long time) {
		GregorianCalendar cal = new GregorianCalendar(0, 0, 0);
		cal.setTimeInMillis(time);
		return toDateString(cal);
	}
857771
public static Timecode valueOf(String timecode, int timecodeBase, StringType stringType) throws IllegalArgumentException
    {
        Timecode tc = new Timecode();
        return (Timecode) tc.parse(timecode, timecodeBase, stringType);
    }
232967
public static java.sql.Time toTime(Object value) throws ParseException {
        if (value == null) {
            return null;
        }
        if (value instanceof java.sql.Time) {
            return (java.sql.Time) value;
        }
        if (value instanceof String) {
            if ("".equals((String) value)) {
                return null;
            }
            return new java.sql.Time(IN_TIME_FORMAT.parse((String) value).getTime());
        }

        return new java.sql.Time(IN_TIME_FORMAT.parse(value.toString()).getTime());
    }
1152407
public java.text.DateFormat getTimeFormat() {
        if(timeFormat == null)
            timeFormat = java.text.DateFormat.getTimeInstance(java.text.DateFormat.SHORT);
        return timeFormat;
    }
383412
@Override
    public S createFrom(
        TimeSource<?> clock,
        AttributeQuery attributes
    ) {

        T temporal = this.delegate.createFrom(clock, attributes);
        return ((temporal == null) ? null : this.converter.from(temporal));

    }
406787
def create_time_from_text(text):
    
    text = text.replace(':', '')

    if not re.match('^\d{3,}$', text):
        raise ValueError("Time must be numeric")

    minutes = int(text[-2:])
    hours = int(text[0:2] if len(text) > 3 else text[0])

    return datetime.time(hours, minutes)
411285
public static Time convertDateToTime(Date date, Time elseValue) {
        return Checker.isNull(date) ? elseValue : new Time(date.getTime());
    }
69264
public static Time parseTime(String time) {
        Assert.assertTrue("time is required, but value is empty", Checker.isNotEmpty(time));
        String[] times = time.split(ValueConsts.COLON);
        String timeStr = formatTimeString(times[0]) + ":" + (times.length > 1 ? formatTimeString(times[1]) : "00") +
                ":" + (times.length > 2 ? formatTimeString(times[2]) : "00");
        return new Time(DateUtil.parseTime(timeStr).getTime());
    }
1196495
public static final String printTime(Date value)
   {
      return (value == null ? null : TIME_FORMAT.get().format(value));
   }