Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 5 of 5 for formatTimestamp (0.07 seconds)

  1. compat/maven-embedder/src/main/java/org/apache/maven/cli/CLIReportingUtils.java

            if (rev != null || timestamp != null) {
                msg += " (";
                msg += (rev != null ? rev : "");
                if (timestamp != null && !timestamp.isEmpty()) {
                    String ts = formatTimestamp(Long.parseLong(timestamp));
                    msg += (rev != null ? "; " : "") + ts;
                }
                msg += ")";
            }
            return msg;
        }
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Nov 08 08:49:11 GMT 2024
    - 7.3K bytes
    - Click Count (0)
  2. impl/maven-cli/src/main/java/org/apache/maven/cling/utils/CLIReportingUtils.java

                            cause = cause.getCause()) {
                        logger.error("Caused by: {}", cause.getMessage());
                    }
                }
            }
        }
    
        public static String formatTimestamp(TemporalAccessor instant) {
            return DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(instant);
        }
    
        public static String formatDuration(Duration duration) {
            long days = duration.toDays();
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Mar 10 15:37:54 GMT 2026
    - 6.9K bytes
    - Click Count (0)
  3. impl/maven-cli/src/main/java/org/apache/maven/cling/event/ExecutionEventLogger.java

    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;
    
    import static org.apache.maven.cling.utils.CLIReportingUtils.formatDuration;
    import static org.apache.maven.cling.utils.CLIReportingUtils.formatTimestamp;
    
    /**
     * Logs execution events to logger, eventually user-supplied.
     *
     */
    public class ExecutionEventLogger extends AbstractExecutionListener {
        private static final int MAX_LOG_PREFIX_SIZE = 8; // "[ERROR] "
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Dec 13 15:40:45 GMT 2024
    - 17.5K bytes
    - Click Count (0)
  4. compat/maven-embedder/src/main/java/org/apache/maven/cli/event/ExecutionEventLogger.java

    import org.slf4j.ILoggerFactory;
    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;
    
    import static org.apache.maven.cli.CLIReportingUtils.formatDuration;
    import static org.apache.maven.cli.CLIReportingUtils.formatTimestamp;
    
    /**
     * Logs execution events to logger, eventually user-supplied.
     *
     */
    @Deprecated
    public class ExecutionEventLogger extends AbstractExecutionListener {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Nov 08 08:49:11 GMT 2024
    - 17.2K bytes
    - Click Count (0)
  5. src/main/webapp/js/chat.js

        }
    
        /**
         * Show empty state
         */
        function showEmptyState() {
            elements.emptyState.show();
        }
    
        /**
         * Format timestamp
         */
        function formatTimestamp(date) {
            var hours = date.getHours();
            var minutes = date.getMinutes();
            var ampm = hours >= 12 ? 'PM' : 'AM';
            hours = hours % 12;
            hours = hours ? hours : 12;
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 19 01:36:02 GMT 2026
    - 30.6K bytes
    - Click Count (0)
Back to Top