001/* 002 * Copyright (c) 2006-2015 Nuxeo SA (http://nuxeo.com/) and others. 003 * 004 * All rights reserved. This program and the accompanying materials 005 * are made available under the terms of the Eclipse Public License v1.0 006 * which accompanies this distribution, and is available at 007 * http://www.eclipse.org/legal/epl-v10.html 008 * 009 * Contributors: 010 */ 011package org.nuxeo.ecm.automation.core.util; 012 013/** 014 * Enum describing the format to use when marshaling a date into JSON. 015 * 016 * @since 7.1 017 */ 018public enum DateTimeFormat { 019 020 /** 021 * Marshals the date as a W3C date (ISO 8601). 022 * <p> 023 * Example: {@code 2011-10-23T12:00:00.00Z}. 024 */ 025 W3C, 026 027 /** 028 * Marshals the date as a number of milliseconds since epoch. 029 */ 030 TIME_IN_MILLIS; 031 032}