Archived

This forum has been archived. Please start a new discussion on GitHub.

Using other basic types in a Slice file

What's the best way to handle other basic types in slice files?

I'm thinking particularly about GUID's and DateTime.

Comments

  • bernard
    bernard Jupiter, FL
    Hi Phillip,

    Welcome to our forums!

    You would typically use a basic type or a struct to represent such types. For example, a GUID could be sent as a string, and a DateTime as struct:
    struct DateTime
    {
          long value;    // number of ms since the epoch   
          int tzShift;    // timezone in minutes from UTC 
    };
    

    Best regards,
    Bernard