date property

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

date property

Nicolas Anquetil

what would be the pragma to describe a date property in the meta-model?

birthDate
  <MSEProperty: #birthDate type: #???>

Number? (representing the date as a timestamp?)

nicolas

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: date property

Andre Hora
String, if it is not a timestamp.

On Wed, Dec 7, 2011 at 9:55 AM, Nicolas Anquetil <[hidden email]> wrote:

what would be the pragma to describe a date property in the meta-model?

birthDate
  <MSEProperty: #birthDate type: #???>

Number? (representing the date as a timestamp?)

nicolas

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev




--
Andre Hora


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: date property

Nicolas Anquetil
but if I want to be able to do that:

anEntity birthDate: '07/12/2011 14:59:00' asDateAndTime .

What do I put in the pragma?

nicolas

De: "Andre Hora" <[hidden email]>
À: "Moose-related development" <[hidden email]>
Envoyé: Mercredi 7 Décembre 2011 10:39:14
Objet: [Moose-dev] Re: date property

String, if it is not a timestamp.

On Wed, Dec 7, 2011 at 9:55 AM, Nicolas Anquetil <[hidden email]> wrote:

what would be the pragma to describe a date property in the meta-model?

birthDate
  <MSEProperty: #birthDate type: #???>

Number? (representing the date as a timestamp?)

nicolas

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev




--
Andre Hora


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: date property

Andre Hora
I think a timestamp should be better. So, a Number.

<MSEProperty: #birthDateAndTime type: #Number>

On Wed, Dec 7, 2011 at 2:59 PM, Nicolas Anquetil <[hidden email]> wrote:
but if I want to be able to do that:

anEntity birthDate: '07/12/2011 14:59:00' asDateAndTime .

What do I put in the pragma?

nicolas

De: "Andre Hora" <[hidden email]>
À: "Moose-related development" <[hidden email]>
Envoyé: Mercredi 7 Décembre 2011 10:39:14
Objet: [Moose-dev] Re: date property


String, if it is not a timestamp.

On Wed, Dec 7, 2011 at 9:55 AM, Nicolas Anquetil <[hidden email]> wrote:

what would be the pragma to describe a date property in the meta-model?

birthDate
  <MSEProperty: #birthDate type: #???>

Number? (representing the date as a timestamp?)

nicolas

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev




--
Andre Hora


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev




--
Andre Hora


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: date property

Andre Hora
In reply to this post by Nicolas Anquetil


On Wed, Dec 7, 2011 at 2:59 PM, Nicolas Anquetil <[hidden email]> wrote:
but if I want to be able to do that:

anEntity birthDate: '07/12/2011 14:59:00' asDateAndTime .
If you want to do specifically that, so you should use a #String.

What do I put in the pragma?

nicolas

De: "Andre Hora" <[hidden email]>
À: "Moose-related development" <[hidden email]>
Envoyé: Mercredi 7 Décembre 2011 10:39:14
Objet: [Moose-dev] Re: date property


String, if it is not a timestamp.

On Wed, Dec 7, 2011 at 9:55 AM, Nicolas Anquetil <[hidden email]> wrote:

what would be the pragma to describe a date property in the meta-model?

birthDate
  <MSEProperty: #birthDate type: #???>

Number? (representing the date as a timestamp?)

nicolas

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev




--
Andre Hora


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev




--
Andre Hora


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev