Find Jobs
Hire Freelancers

Flutter / Dart Date and Time Formatter Functions

$10-30 USD

Terminado
Publicado hace más de 2 años

$10-30 USD

Pagado a la entrega
This project must use the DateTime class ([login to view URL]). I'm looking to format the date and/or time based on the passed in value to the function. I need two different functions I outlined below. The formatting is similar to SMS client apps on your Smartphone. The first function is based on the Conversation view of all the chat in your SMS Inbox. The second function is based of a specific chat message with a contact. I need a function to format the date/time based off milliseconds from epoch. The returned date or time should follow these rules. - if the timestamp is today then it should return the "time" (e.g. 11:08 AM) - if the timestamp is within one week of the given timestamp, excluding today, then it should return the "day of week" (e.g. Mon) - if the timestamp is within one year of the given timestamp it should return the "month" and "day" (e.g. Sep 16) - if the timestamp is older than one year of the given timestamp it should return "month", "day" and "year" (e.g. 9/8/20) String formatConversationDate(int milliseconds) { final DateTime dateTime = [login to view URL](milliseconds); // Example return return "${[login to view URL]}-${[login to view URL]}"; } I need a second function to format the date/time based off milliseconds from epoch. The returned date or time should follow these rules. - if the timestamp is today then it should return the "time" (e.g. 11:08 AM) - if the timestamp is within one week of the given timestamp, excluding today, then it should return the "day of week" and "time" (e.g. Mon 7:21 PM) - if the timestamp is within one year of the given timestamp it should return the "month", "day" and "time" (e.g. Sep 28 12:10 PM) - if the timestamp is older than one year of the given timestamp it should return "month", "day", "year" and "time" (e.g. 9/8/20 9:00 AM) String formatChatMessageDate(int milliseconds) { final DateTime dateTime = [login to view URL](milliseconds); // Example return return "${[login to view URL]}-${[login to view URL]}"; } You can use the link below to generate the needed epoch timestamps. [login to view URL]
ID del proyecto: 31741997

Información sobre el proyecto

4 propuestas
Proyecto remoto
Activo hace 3 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
Adjudicado a:
Avatar del usuario
Hello i can give you the functions in 24 hours. I can help you to making this functions. You can contact me.
$30 USD en 1 día
5,0 (3 comentarios)
3,5
3,5
4 freelancers están ofertando un promedio de $21 USD por este trabajo
Avatar del usuario
iPhone & Android Apps Development • DW Solution Online is providing iPhone & Apps Development Services. In today’s world, technology is changing rapidly and we all need everything on our mobile devices. You can access all you can from your mobile devices, you can do so much more with mobile devices & the difference is clear. DW Solution Online App solution is rich, consistent and powerful, you may access your Apps via a tablet, Smartphone or laptop, ensuring they are quick and save time. You can make life on your Mobile phone or tablet faster, easier, and more fun. Whether you're interested in entertainment, staying organized, working efficiently, corporate life or mobile security, you can find all you need. Benefits: - Speed optimization & easy to access all your work, development utilization rates by keeping them informed in the field. - Reduce errors and speed billing by capturing all service details onsite - You can access everything even in remote locations - Take the data and allow you to manipulate it with complex calculations, charts or reports, native Mobile App will help you do that very effectively. - No connectivity required, you can access content or perform functions without a network/wireless connection thru’ an App. - Mobile websites can be developed by us, mobile app, database-driven web applications that can act very much like native Apps
$20 USD en 7 días
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
Hi There...! Note : I give you 25% off on my all services. So grabs this special limite discount offer. Let’s get to the Project. I came to know that your Looking a developer which have rich knowledge about Dart Flutter development. you need Flutter / Dart Date and Time Formatter Functions .I am ready for this job According to your post description, you need the job done very quickly with an affordable budget. Your requirements are fully clear to me and I am applying only because I meet all the requirements that you are looking for. I have been working as a full stack Android developer for more than 10 years and I know all the ins and outs of Android development and customization Project should be 100% correct and Complete that will be my first guarantee service in this project. Moreover, I will be available for you for any kind of future edits and customizations. Sometimes my ten years back clients search for me till now only because of my excellent service. I am mostly in love with communication. I like to be in touch with my clients 24/7 so that they can catch me at any time when they need me. I am looking for the clear final requirements docs of your project so that I can start working immediately. If you need to discuss with me for any kind of suggestions or information, please knock me anytime. I am looking forward to hearing from you. Thanks Zohab Jameel.z
$10 USD en 1 día
0,0 (0 comentarios)
0,0
0,0

Sobre este cliente

Bandera de UNITED STATES
Freehold, United States
5,0
5
Forma de pago verificada
Miembro desde oct 10, 2017

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.