class CCL::Format::TimeAhead

Overview

Format time ahead from now (like “3 days”). More…

#include <formatter.h>

class TimeAhead: public CCL::Formatter
{
public:
    // methods

    static TimeAhead String print (const CCL::DateTime& dateTime);
    static bool scan (CCL::DateTime& dateTime, StringRef string);
    static String print (VariantRef value);
    static bool scan (Variant& value, StringRef string);
};

Inherited Members

public:
    // enums

    enum Flags;

    // fields

     IFormatter;

    // methods

    virtual tresult CCL_API queryInterface (UIDRef iid, void** ptr) = 0;
    virtual unsigned int CCL_API retain () = 0;
    virtual unsigned int CCL_API release () = 0;
    Unknown& operator = (const Unknown&);
    unsigned int getRetainCount () const;
    virtual int CCL_API getFlags () const = 0;
    virtual tbool CCL_API printString (String& string, VariantRef value) const = 0;
    virtual tbool CCL_API scanString (Variant& value, StringRef string) const = 0;
    virtual CStringPtr CCL_API getFactoryName () const = 0;
    bool isNormalized () const;
    bool isStateful () const;
    void setFactoryName (CStringPtr _factoryName);
    virtual int CCL_API getFlags () const;
    virtual tbool CCL_API printString (String& string, VariantRef value) const;
    virtual tbool CCL_API scanString (Variant& value, StringRef string) const;
    virtual CStringPtr CCL_API getFactoryName () const;

Detailed Documentation

Format time ahead from now (like “3 days”).

DateTime is in local timezone.